AnyRequestable

public struct AnyRequestable<RequestBody, ResponseBody, ResponseError> : Requestable where ResponseError : Error

A type erased Requestable wrapper, with no other functional differences.

Initializers

  • Create an AnyRequestable from something that conforms to Requestable

    Declaration

    Swift

    public init<T>(_ requestable: T) where RequestBody == T.RequestBody, ResponseBody == T.ResponseBody, ResponseError == T.ResponseError, T : Requestable

    Parameters

    requestable

    The Requestable to type-erase

Requestable