Configuration
Configuration for the HTTPRequestEncoder
.
struct Configuration
This object controls the behaviour of the HTTPRequestEncoder
. It enables users to change the default behaviour of the type to better handle a wide range of use-cases.
Configuration for the HTTPRequestEncoder
.
struct Configuration
This object controls the behaviour of the HTTPRequestEncoder
. It enables users to change the default behaviour of the type to better handle a wide range of use-cases.
import NIOHTTP1
final class HTTPRequestEncoder
A ChannelOutboundHandler
that can serialize HTTP requests.
convenience init()
init(configuration: HTTPRequestEncoder.Configuration)
func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)
typealias OutboundIn = HTTPClientRequestPart
typealias OutboundOut = IOData
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init()
var automaticallySetFramingHeaders: Bool
Whether the HTTPRequestEncoder
should automatically add Content-Length
or Transfer-Encoding
headers when appropriate.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.