Type Aliasswift-nio 2.81.0NIOHTTP1
InboundOut
HTTPDecoder.swift:526typealias InboundOut = In
typealias InboundOut = In
import NIOHTTP1
final class HTTPDecoder<In, Out>
A ChannelInboundHandler
that parses HTTP/1-style messages, converting them from unstructured bytes to a sequence of HTTP messages.
convenience init(leftOverBytesStrategy: RemoveAfterUpgradeStrategy = .dropBytes)
Creates a new instance of HTTPDecoder
.
init(leftOverBytesStrategy: RemoveAfterUpgradeStrategy = .dropBytes, informationalResponseStrategy: NIOInformationalResponseStrategy = .drop)
Creates a new instance of HTTPDecoder
.
func decode(context: ChannelHandlerContext, buffer: inout ByteBuffer) throws -> DecodingState
func decodeLast(context: ChannelHandlerContext, buffer: inout ByteBuffer, seenEOF: Bool) throws -> DecodingState
func decoderAdded(context: ChannelHandlerContext)
func decoderRemoved(context: ChannelHandlerContext)