Structurehummingbird 2.1.0Hummingbird
BasicRequestContext
Implementation of a basic request context that supports everything the Hummingbird library needs
RequestContext.swift:126struct BasicRequestContext
Citizens in Hummingbird
Conformances
protocol InitializableFromSource<Source>
A type that can be initialized from another type
protocol RequestContext
Protocol that all request contexts should conform to. A RequestContext is a statically typed metadata container for information that is associated with a
Request
, and is therefore instantiated alongside the request.protocol RequestContextSource
Protocol for source of request contexts
protocol Sendable
Type members
init(source: Source
) Initialize an
RequestContext
Instance members
var coreContext: CoreRequestContextStorage
core context
Instance features
var endpointPath: String?
Endpoint path
var id: String
Request ID, extracted from Logger
var logger: Logger
Logger to use with Request
var maxUploadSize: Int
Maximum size of request body allowed when decoding requests.
var parameters: Parameters
Parameters extracted from URI
var requestDecoder: Decoder
var responseEncoder: Encoder