Type Aliasswift-nio 2.84.0NIOHTTP1
OutboundOut
HTTPServerProtocolErrorHandler.swift:27typealias OutboundOut = HTTPServerResponsePart
typealias OutboundOut = HTTPServerResponsePart
s8NIOHTTP130HTTPServerProtocolErrorHandlerC11OutboundOuta
What are these?23QRX
import NIOHTTP1
final class HTTPServerProtocolErrorHandler
A simple channel handler that catches errors emitted by parsing HTTP requests and sends 400 Bad Request responses.
typealias HTTPServerResponsePart = HTTPPart<HTTPResponseHead, IOData>
The components of a HTTP response from the view of a HTTP server.
init()
func errorCaught(context: ChannelHandlerContext, error: any Error)
func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)
typealias InboundIn = HTTPServerRequestPart
typealias InboundOut = HTTPServerRequestPart
typealias OutboundIn = HTTPServerResponsePart