static func ok(body: Data, contentType : MIMEType, includeBody : Bool) -> HTTPResponse ok(body:Creates a 200 OK response with file content.
An HTTP response structure for static file serving.
struct HTTPResponseThis type encapsulates an HTTP response head (status code and headers) along with an optional response body. All instances are Sendable, making them safe to pass across concurrency boundaries.
HTTPResponse provides factory methods for common HTTP status codes, making it easy to construct appropriate responses for various scenarios encountered during static file serving.
static func ok(body: Data, contentType : MIMEType, includeBody : Bool) -> HTTPResponse ok(body:static var badRequest : HTTPResponse badstatic var forbidden: HTTPResponse forbiddenstatic var notFound : HTTPResponse notstatic var methodNotAllowed : HTTPResponse methodstatic var internalServerError : HTTPResponse internallet head: HTTPResponseHead headlet body: ByteBuffer ? bodySwift.Sendable Swift.SendableMetatype