ARequestable
public protocol ARequestable : AConfigurable, _Requestable
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? { get }
-
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 var request: DataRequest { get }
Return Value
The created
DataRequest
.