|
@@ -812,7 +812,7 @@ Alamofire.request(.GET, user) // http://example.com/users/mattt
|
|
|
|
|
|
|
|
### URLRequestConvertible
|
|
### URLRequestConvertible
|
|
|
|
|
|
|
|
-Types adopting the `URLRequestConvertible` protocol can be used to construct URL requests. `NSURLRequest` conforms to `URLRequestConvertible` by default, allowing it to be passed into `request`, `upload`, and `download` methods directly (this is the recommended way to specify custom HTTP header fields or HTTP body for individual requests):
|
|
|
|
|
|
|
+Types adopting the `URLRequestConvertible` protocol can be used to construct URL requests. `NSURLRequest` conforms to `URLRequestConvertible` by default, allowing it to be passed into `request`, `upload`, and `download` methods directly (this is the recommended way to specify custom HTTP body for individual requests):
|
|
|
|
|
|
|
|
```swift
|
|
```swift
|
|
|
let URL = NSURL(string: "http://httpbin.org/post")!
|
|
let URL = NSURL(string: "http://httpbin.org/post")!
|