Instance Methodhummingbird 2.3.0HummingbirdCore
writeHead(_:)
Write HTTP head part and return ResponseBodyWriter
to write response body
consuming func writeHead(_ head: HTTPResponse) async throws -> some ResponseBodyWriter
Parameters
- head
Response head
Returns
Response body writer used to write HTTP response body
Other members in extension
Instance members
func writeInformationalHead(HTTPResponse
) async throws Write Informational HTTP head part
func writeResponse(HTTPResponse
) async throws Write full HTTP response that doesn’t include a body