BaseRequestable

public protocol BaseRequestable : Configurable, ResponseSerializable

Represents an abstract BaseRequestable.

Instead implement Requestable, Downloadable, FileUploadable, DataUploadable, StreamUploadable, MultipartUplodable protocols.

  • path Default implementation

    The path relative to base URL.

    Default Implementation

    nil

    Declaration

    Swift

    var path: String? { get }
  • asUrlRequest(parameters:) Extension method

    Undocumented

    Declaration

    Swift

    func asUrlRequest(parameters: Any? = nil) throws -> URLRequest
  • asUrlRequest(parameters:) Extension method

    Undocumented

    Declaration

    Swift

    func asUrlRequest<T>(parameters: T) throws -> URLRequest where T : Encodable
  • Creates a URLRequest to retrieve the contents of a URL based on the specified Requestable

    Declaration

    Swift

    func asUrlRequest<T>(parametersType: ParametersType<T>) throws -> URLRequest where T : Encodable

    Return Value

    The created URLRequest.