Instance Methodswift-nio 2.72.0NIOTestUtils
writeOutbound(_:)
NIOHTTP1TestServer.swift:306func writeOutbound(_ data: HTTPServerResponsePart) throws
Other members in extension
Type members
Instance members
var serverPort: Int
func readInbound(deadline: NIODeadline
) throws -> HTTPServerRequestPart func receiveBody(deadline: NIODeadline
) throws -> ByteBuffer Waits for a message part to be received and checks that it was a
.body
before returning theByteBuffer
it contained.func receiveBodyAndVerify(deadline: NIODeadline, (ByteBuffer) throws -> Void
) throws Waits for a message part to be received and checks that it was a
.body
before passing it to theverify
block.func receiveEnd(deadline: NIODeadline
) throws -> HTTPHeaders? Waits for a message part to be received and checks that it was a
.end
before returning theHTTPHeaders?
it contained.func receiveEndAndVerify(deadline: NIODeadline, (HTTPHeaders?) throws -> Void
) throws Waits for a message part to be received and checks that it was a
.end
before passing it to theverify
block.func receiveHead(deadline: NIODeadline
) throws -> HTTPRequestHead Waits for a message part to be received and checks that it was a
.head
before returning theHTTPRequestHead
it contained.func receiveHeadAndVerify(deadline: NIODeadline, (HTTPRequestHead) throws -> Void
) throws Waits for a message part to be received and checks that it was a
.head
before passing it to theverify
block.func stop(
) throws