var headers: HTTPFields
s11Hummingbird14EditedResponseV7headers9HTTPTypes10HTTPFieldsVvpWhat are these?
s11Hummingbird14EditedResponseV7headers9HTTPTypes10HTTPFieldsVvp
FNV24: [3IWVO]
init(status: HTTPResponse.Status?, headers: HTTPFields, response: Generator)
var responseGenerator: Generator
var status: HTTPResponse.Status?
func response(from: Request, context: some RequestContext) throws -> Response
import Hummingbird
struct EditedResponse<Generator> where Generator : ResponseGenerator
struct HTTPFields
A collection of HTTP fields. It is used in HTTPRequest and HTTPResponse, and can also be used as HTTP trailer fields.
HTTPRequest
HTTPResponse
init(status: HTTPResponse.Status? = nil, headers: HTTPFields = .init(), response: Generator)
func response(from request: Request, context: some RequestContext) throws -> Response