ARequestable
public protocol ARequestable: _Requestable, AConfigurable
Represents a Requestable
for Alamofire.
Create custom Requestable
protocol HTTPBinGETService: ARequestable {
var path: String? = "get"
}
-
validationBlock
Default implementationThe Alamofire data request validation.
Default Implementation
Validation.default.dataValidation
Declaration
Swift
var validationBlock: DataRequest.Validation?
-
request()
Extension methodCreates a
DataRequest
to retrieve the contents of a URL based on the specifiedRequestable
If
startRequestsImmediately
istrue
, the request will haveresume()
called before being returned.Declaration
Swift
public func request() -> DataRequest
Return Value
The created
DataRequest
.