Protocol
RequestDecodable
public protocol RequestDecodable
Can convert Request
to a Self
.
Types that conform to this protocol can decode requests to their type.
Relationships
Types Conforming to RequestDecodable
Content
Convertible to / from content in an HTTP message.
Request
Represents an HTTP request in an application.
Requirements
decodeRequest(_:)
static func decodeRequest(_ request: Request) -> EventLoopFuture<Self>
Decodes an instance of Request
to a Self
.
Parameters
Name | Type | Description |
---|---|---|
request | Request |
The |
Returns
An asynchronous Self
.