This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NIOCore | |
import NIOHTTP1 | |
import NIOPosix | |
/// Sendable server response that doesn't use ``IOData`` | |
public typealias SendableHTTPServerResponsePart = HTTPPart<HTTPResponseHead, ByteBuffer> | |
/// Channel to convert HTTPServerResponsePart to the Sendable type HBHTTPServerResponsePart | |
final class HTTPSendableResponseChannelHandler: ChannelOutboundHandler, RemovableChannelHandler { | |
typealias OutboundIn = SendableHTTPServerResponsePart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Hummingbird | |
import MultipartKit | |
import NIOCore | |
import NIOHTTP1 | |
import StructuredFieldValues | |
struct FileUpload: Decodable { | |
let upload: File | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
replace: (try\s+)?XCTAssertEqual\((.*),\s*([^,]+)\) | |
with: #expect($2 == $3) | |
replace: (try\s+)?XCTAssertNotEqual\((.*),\s*([^,]+)\) | |
with: #expect($2 != $3) |
OlderNewer