Instance Propertyhummingbird 2.10.0HummingbirdCore
headers
Request HTTP headers
var headers: HTTPFields { get }
Request HTTP headers
var headers: HTTPFields { get }
s15HummingbirdCore7RequestV7headers9HTTPTypes10HTTPFieldsVvp
What are these?81LZP
import HummingbirdCore
struct Request
Holds all the values required to process a request
struct HTTPFields
A collection of HTTP fields. It is used in HTTPRequest
and HTTPResponse
, and can also be used as HTTP trailer fields.
init(head: HTTPRequest, body: RequestBody)
Create new Request
init(head: HTTPRequest, bodyIterator: NIOAsyncChannelInboundStream<HTTPRequestPart>.AsyncIterator)
Create new Request
var body: RequestBody { get set }
var description: String { get }
let head: HTTPRequest
HTTP head
var method: HTTPRequest.Method { get }
Request HTTP method
let uri: URI
URI path
mutating func collectBody(upTo maxSize: Int) async throws -> ByteBuffer
Collapse body into one ByteBuffer.