RequestEncodable

public protocol RequestEncodable

Can convert self to a Request.

  • Encodes an instance of Self asynchronously to a Request.

    Declaration

    Swift

    func encode(using container: Container) throws -> Future<Request>

    Parameters

    container

    Container to use for initializing the Request.

    Return Value

    A Future containing the Request.