A class for storing and performing HTTP requests.
More...
#import <OFHTTPRequest.h>
List of all members.
Detailed Description
A class for storing and performing HTTP requests.
Member Function Documentation
- Returns:
- A dictionary with headers for the HTTP request.
- (id) initWithURL: |
|
(OFURL*) |
url |
|
|
Initializes an already allocated OFHTTPRequest with the specified URL.
- Parameters:
-
| url | The URL for the request |
- Returns:
- An initialized OFHTTPRequest
Performs the HTTP request and returns an OFHTTPRequestResult.
- Parameters:
-
| redirects | The maximum number of redirects after which no further attempt is done to follow the redirect, but instead the redirect is returned as an OFHTTPRequest |
- Returns:
- An OFHTTPRequestResult with the result of the HTTP request
- Returns:
- The query string for the HTTP request
- (BOOL) redirectsFromHTTPSToHTTPAllowed |
|
|
|
|
- Returns:
- Whether redirects from HTTPS to HTTP are allowed
- (of_http_request_type_t) requestType |
|
|
|
|
- Returns:
- The request type for the HTTP request
+ (id) requestWithURL: |
|
(OFURL*) |
url |
|
|
- Parameters:
-
| url | The URL for the request |
- Returns:
- A new, autoreleased OFHTTPRequest
Sets a dictionary with headers for the HTTP request.
- Parameters:
-
| headers | A dictionary with headers for the HTTP request |
Sets the query string for the HTTP request.
- Parameters:
-
| qs | The query string for the HTTP request |
- (void) setRedirectsFromHTTPSToHTTPAllowed: |
|
(BOOL) |
allowed |
|
|
Sets whether redirects from HTTPS to HTTP are allowed.
- Parameters:
-
| allowed | Whether redirects from HTTPS to HTTP are allowed |
- (void) setRequestType: |
|
(of_http_request_type_t) |
type |
|
|
Sets the request type for the HTTP request.
- Parameters:
-
| type | The request type for the HTTP request |
- (void) setURL: |
|
(OFURL*) |
url |
|
|
Sets the URL for the HTTP request.
- Parameters:
-
| URL | The URL for the HTTP request |
- Returns:
- The URL for the HTTP request
The documentation for this class was generated from the following files: