Vapor Documentation

Protocol Request​Decodable

public protocol RequestDecodable  

Can convert Request to a Self.

Types that conform to this protocol can decode requests to their type.

%39 RequestDecodable RequestDecodable Request Request Request->RequestDecodable Content Content Content->RequestDecodable

Types Conforming to Request​Decodable

Content

Convertible to / from content in an HTTP message.

Request

Represents an HTTP request in an application.

Requirements

decode​Request(_:​)

static func decodeRequest(_ request: Request) -> EventLoopFuture<Self>

Decodes an instance of Request to a Self.

Parameters

request Request

The Request to be decoded.

Returns

An asynchronous Self.