ARequestable

public protocol ARequestable : AConfigurable, _Requestable

Represents a Requestable for Alamofire.

Create custom Requestable

protocol HTTPBinGETService: ARequestable {

    var path: String? = "get"

}
  • validationBlock Default implementation

    The Alamofire data request validation.

    Default Implementation

    Validation.default.dataValidation

    Declaration

    Swift

    var validationBlock: DataRequest.Validation? { get }
  • request Extension method

    Creates a DataRequest to retrieve the contents of a URL based on the specified Requestable

    If startRequestsImmediately is true, the request will have resume() called before being returned.

    Declaration

    Swift

    public var request: DataRequest { get }

    Return Value

    The created DataRequest.