Vapor Documentation

Protocol Async​Request​Decodable

public protocol AsyncRequestDecodable  

Can convert Request to a Self.

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

This is the async version of RequestDecodable

%733 AsyncRequestDecodable AsyncRequestDecodable Request Request Request->AsyncRequestDecodable Content Content Content->AsyncRequestDecodable

Types Conforming to Async​Request​Decodable

Content

Convertible to / from content in an HTTP message.

Request

Represents an HTTP request in an application.

Requirements

decode​Request(_:​)

@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
    static func decodeRequest(_ request: Request) async throws -> Self