Static Method (Default implementation)vapor 4.114.1Vapor
decodeRequest(_:)
Content.swift:68static func decodeRequest(_ request: Request) -> EventLoopFuture<Self>
static func decodeRequest(_ request: Request) -> EventLoopFuture<Self>
s5Vapor7ContentPAAE13decodeRequesty7NIOCore15EventLoopFutureCyxGAA0D0CFZ
What are these?65020
import Vapor
Vapor 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 Content : Decodable, Encodable, Sendable, AsyncRequestDecodable, AsyncResponseEncodable, RequestDecodable, ResponseEncodable
Convertible to / from content in an HTTP message.
final class Request
Represents an HTTP request in an application.
final class EventLoopFuture<Value>
Holder for a result that will be provided later.
static func decodeRequest(_ request: Request) -> EventLoopFuture<Self>
Decodes an instance of Request
to a Self
.
static func decodeRequest(_ request: Request) async throws -> Self
Decodes an instance of Request
to a Self
.
static var defaultContentType: HTTPMediaType { get }
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(for request: Request) async throws -> Response