|
FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
Creation methods extension using NSURLRequest. More...
#import <NSURLRequestCreations.h>
Instance Methods | |
| (instancetype) | - initWithContentsOfURLRequest: |
| Initializes a newly allocated data object initialized with the data from the result specified by a given request. More... | |
| (instancetype) | - initWithContentsOfURLRequest:error: |
| Initializes a newly allocated data object initialized with the data from the result specified by a given request. More... | |
Class Methods | |
| (instancetype) | + dataWithContentsOfURLRequest: |
| Returns a data object with the data from the result specified by a given request. More... | |
| (instancetype) | + dataWithContentsOfURLRequest:error: |
| Returns a data object with the data from the result specified by a given request. More... | |
Deprecated | |
| (instancetype) | - initWithContentsOfURL:postBody:encoding: |
| (instancetype) | + dataWithContentsOfURL:postBody:encoding: |
Creation methods extension using NSURLRequest.
| + (instancetype) dataWithContentsOfURL: | (NSURL *) | url | |
| postBody: | (NSDictionary *) | bodyDictionary | |
| encoding: | (NSStringEncoding) | __deprecated | |
| + (instancetype) dataWithContentsOfURLRequest: | (NSURLRequest *) | request |
Returns a data object with the data from the result specified by a given request.
| + (instancetype) dataWithContentsOfURLRequest: | (NSURLRequest *) | request | |
| error: | (NSError **) | errorPtr | |
Returns a data object with the data from the result specified by a given request.
| - (instancetype) initWithContentsOfURL: | (NSURL *) | url | |
| postBody: | (NSDictionary *) | bodyDictionary | |
| encoding: | (NSStringEncoding) | __deprecated | |
| - (instancetype) initWithContentsOfURLRequest: | (NSURLRequest *) | request |
Initializes a newly allocated data object initialized with the data from the result specified by a given request.
| request | The URLRequest from which to read data. |
| - (instancetype) initWithContentsOfURLRequest: | (NSURLRequest *) | request | |
| error: | (NSError **) | errorPtr | |
Initializes a newly allocated data object initialized with the data from the result specified by a given request.
| request | The URLRequest from which to read data. |
| errorPtr | If there is an error reading in the data, upon return contains an NSError object that describes the problem. |