@@ -20,7 +20,7 @@ import Alamofire
2020import AlamofireObjectMapper
2121import ObjectMapper
2222
23- open class RequestManager < U: URLProtocol , E: AlamoRecordError , IDType> : NSObject {
23+ open class RequestManager < U: AlamoRecordURL , E: AlamoRecordError , IDType> : NSObject {
2424
2525 public typealias Parameters = [ String : Any ]
2626
@@ -48,7 +48,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
4848 /**
4949 Makes a request to the given URL. Each request goes through this method first.
5050 - parameter method: The HTTP method
51- - parameter url: The URL that conforms to URLProtocol
51+ - parameter url: The URL that conforms to AlamoRecordURL
5252 - parameter parameters: The parameters. `nil` by default
5353 - parameter encoding: The parameter encoding. `URLEncoding.default` by default
5454 - parameter headers: The HTTP headers. `nil` by default
@@ -72,7 +72,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
7272 /**
7373 Makes a request to the given URL
7474 - parameter method: The HTTP method
75- - parameter url: The URL that conforms to URLProtocol
75+ - parameter url: The URL that conforms to AlamoRecordURL
7676 - parameter parameters: The parameters. `nil` by default
7777 - parameter encoding: The parameter encoding. `URLEncoding.default` by default
7878 - parameter headers: The HTTP headers. `nil` by default
@@ -121,7 +121,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
121121 /**
122122 Makes a request and maps an object that conforms to the Mappable protocol
123123 - parameter method: The HTTP method
124- - parameter url: The URL that conforms to URLProtocol
124+ - parameter url: The URL that conforms to AlamoRecordURL
125125 - parameter parameters: The parameters. `nil` by default
126126 - parameter keyPath: The keyPath to use when deserializing the JSON. `nil` by default.
127127 - parameter encoding: The parameter encoding. `URLEncoding.default` by default.
@@ -159,7 +159,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
159159 /**
160160 Makes a request and maps an array of objects that conform to the Mappable protocol
161161 - parameter method: The HTTP method
162- - parameter url: The URL that conforms to URLProtocol
162+ - parameter url: The URL that conforms to AlamoRecordURL
163163 - parameter parameters: The parameters. `nil` by default
164164 - parameter keyPath: The keyPath to use when deserializing the JSON. `nil` by default.
165165 - parameter encoding: The parameter encoding. `URLEncoding.default` by default.
@@ -224,7 +224,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
224224
225225 /**
226226 Makes a request and maps an AlamoRecordObject
227- - parameter url: The URL that conforms to URLProtocol
227+ - parameter url: The URL that conforms to AlamoRecordURL
228228 - parameter parameters: The parameters. `nil` by default
229229 - parameter keyPath: The keyPath to use when deserializing the JSON. `nil` by default.
230230 - parameter encoding: The parameter encoding. `URLEncoding.default` by default.
@@ -253,7 +253,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
253253
254254 /**
255255 Makes a request and maps an array of AlamoRecordObjects
256- - parameter url: The URL that conforms to URLProtocol
256+ - parameter url: The URL that conforms to AlamoRecordURL
257257 - parameter parameters: The parameters. `nil` by default
258258 - parameter keyPath: The keyPath to use when deserializing the JSON. `nil` by default.
259259 - parameter encoding: The parameter encoding. `URLEncoding.default` by default.
@@ -308,7 +308,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
308308
309309 /**
310310 Makes a request and creates an AlamoRecordObject
311- - paramter url: The URL that conforms to URLProtocol
311+ - paramter url: The URL that conforms to AlamoRecordURL
312312 - parameter parameters: The parameters. `nil` by default
313313 - parameter keyPath: The keyPath to use when deserializing the JSON. `nil` by default.
314314 - parameter encoding: The parameter encoding. `URLEncoding.default` by default.
@@ -390,7 +390,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
390390
391391 /**
392392 Makes a request and updates an AlamoRecordObject
393- - parameter url: The URL that conforms to URLProtocol
393+ - parameter url: The URL that conforms to AlamoRecordURL
394394 - parameter parameters: The parameters. `nil` by default
395395 - parameter keyPath: The keyPath to use when deserializing the JSON. `nil` by default.
396396 - parameter encoding: The parameter encoding. `URLEncoding.default` by default.
@@ -419,7 +419,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
419419
420420 /**
421421 Makes a request and updates an AlamoRecordObject
422- - parameter url: The URL that conforms to URLProtocol
422+ - parameter url: The URL that conforms to AlamoRecordURL
423423 - parameter parameters: The parameters. `nil` by default
424424 - parameter keyPath: The keyPath to use when deserializing the JSON. `nil` by default.
425425 - parameter encoding: The parameter encoding. `URLEncoding.default` by default.
@@ -446,7 +446,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
446446
447447 /**
448448 Makes a request and destroys an AlamoRecordObject
449- - parameter url: The URL that conforms to URLProtocol
449+ - parameter url: The URL that conforms to AlamoRecordURL
450450 - parameter parameters: The parameters. `nil` by default
451451 - parameter encoding: The parameter encoding. `URLEncoding.default` by default.
452452 - parameter headers: The HTTP headers. `nil` by default.
@@ -473,7 +473,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
473473
474474 /**
475475 Makes an upload request
476- - parameter url: The URL that conforms to URLProtocol
476+ - parameter url: The URL that conforms to AlamoRecordURL
477477 - parameter keyPath: The keyPath to use when deserializing the JSON. `nil` by default.
478478 - parameter headers: The HTTP headers. `nil` by default.
479479 - parameter multipartFormData: The data to append
@@ -511,7 +511,7 @@ open class RequestManager<U: URLProtocol, E: AlamoRecordError, IDType>: NSObject
511511
512512 /**
513513 Makes a download request
514- - parameter url: The URL that conforms to URLProtocol
514+ - parameter url: The URL that conforms to AlamoRecordURL
515515 - parameter destination: The destination to download the file to. If it is nil, then a default one will be assigned.
516516 - parameter progress: The progress handler of the download request
517517 - parameter success: The block to execute if the request succeeds
0 commit comments