NSURLRequest(Extensions) Category Reference
Declared in | NSURLRequest+Extensions.h |
---|
outputDescription
A human readable debugging description of the NSURLRequest
object.
@property (nonatomic, readonly, nonnull) NSString *outputDescription
Discussion
A human readable debugging description of the NSURLRequest
object.
Declared In
NSURLRequest+Extensions.h
– uniqueHashWithHTTPHeaderExceptions:
Generates a unique hash for the NSURLRequest
with the exception
of the given http header names which are ignored.
- (nonnull NSString *)uniqueHashWithHTTPHeaderExceptions:(nullable NSArray<NSString*> *)httpHeaderExceptions
Parameters
httpHeaderExceptions |
An |
---|
Return Value
The unique hash NSString
object.
Discussion
Generates a unique hash for the NSURLRequest
with the exception
of the given http header names which are ignored.
Declared In
NSURLRequest+Extensions.h
uniqueHash
A unique hash string for the NSURLRequest
.
@property (nonatomic, readonly, nonnull) NSString *uniqueHash
Discussion
A unique hash string for the NSURLRequest
.
Declared In
NSURLRequest+Extensions.h
+ authorizationHeaderWithUsername:password:
Generates a HTTP ‘Authorization’ header with the given credentials.
+ (nonnull NSDictionary<NSString*,NSString*> *)authorizationHeaderWithUsername:(nonnull NSString *)username password:(nonnull NSString *)password
Parameters
username |
The username to use. |
---|---|
password |
The password to use. |
Return Value
A NSDictionary
object containing the header.
Discussion
Generates a HTTP ‘Authorization’ header with the given credentials.
Declared In
NSURLRequest+Extensions.h
+ httpGetRequestWithURL:customHTTPHeaders:
Creates a new HTTP GET request.
+ (nonnull NSURLRequest *)httpGetRequestWithURL:(nonnull NSString *)url customHTTPHeaders:(nullable NSDictionary<NSString*,NSString*> *)customHTTPHeaders
Parameters
url |
The URL of the request. |
---|---|
customHTTPHeaders |
The custom HTTP headers to include. |
Return Value
The new NSURLRequest
object.
Discussion
Creates a new HTTP GET request.
Declared In
NSURLRequest+Extensions.h
+ httpPostRequestWithURL:andData:customHTTPHeaders:
Creates a new HTTP POST request.
+ (nonnull NSURLRequest *)httpPostRequestWithURL:(nonnull NSString *)url andData:(nullable NSData *)data customHTTPHeaders:(nullable NSDictionary<NSString*,NSString*> *)customHTTPHeaders
Parameters
url |
The URL of the request. |
---|---|
data |
The HTTP body data of the request. |
customHTTPHeaders |
The custom HTTP headers to include. |
Return Value
The new NSURLRequest
object.
Discussion
Creates a new HTTP POST request.
Declared In
NSURLRequest+Extensions.h