Protocolvapor 4.114.1Vapor
RequestDecodable
Can convert Request
to a Self
.
protocol RequestDecodable
Browse conforming typesTypes that conform to this protocol can decode requests to their type.
Can convert Request
to a Self
.
protocol RequestDecodable
Types that conform to this protocol can decode requests to their type.
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.
static func decodeRequest(_ request: Request) -> EventLoopFuture<Self>
Decodes an instance of Request
to a Self
.
protocol Content : Decodable, Encodable, Sendable, AsyncRequestDecodable, AsyncResponseEncodable, RequestDecodable, ResponseEncodable
Convertible to / from content in an HTTP message.