Extension (Structure)vapor 4.114.1all tags
Bool (ext)
You’re viewing third-party extensions to Bool, a struct from the Swift standard library.
You can also read the documentation forBool itself.
extension BoolYou’re viewing third-party extensions to Bool, a struct from the Swift standard library.
You can also read the documentation forBool itself.
extension Bool@frozen struct BoolA value type whose instances are either true or false.
import VaporVapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol AsyncRequestDecodableCan convert Request to a Self.
protocol AsyncResponseEncodableCan convert self to a Response.
protocol Content : Decodable, Encodable, Sendable, AsyncRequestDecodable, AsyncResponseEncodable, RequestDecodable, ResponseEncodableConvertible to / from content in an HTTP message.
protocol RequestDecodableCan convert Request to a Self.
protocol ResponseEncodableCan convert self to a Response.
static var defaultContentType: HTTPMediaType { get }static func decodeRequest(_ request: Request) -> EventLoopFuture<Self> static func decodeRequest(_ request: Request) async throws -> Self mutating func afterDecode() throws mutating func beforeEncode() throws func encodeResponse(for request: Request) -> EventLoopFuture<Response> func encodeResponse(status: HTTPStatus, headers: HTTPHeaders = [:], for request: Request) -> EventLoopFuture<Response> Asynchronously encodes Self into a Response, setting the supplied status and headers.