Differences From Artifact [50bcc3a5fa]:
- File
src/OFHTTPRequest.h
— part of check-in
[9ed387bacb]
at
2011-04-22 14:13:30
on branch trunk
— Add OFHTTPRequestDelegate.
This allows status updates etc. (user: js, size: 6612) [annotate] [blame] [check-ins using]
To Artifact [cb8dc6b01c]:
- File
src/OFHTTPRequest.h
— part of check-in
[1cc6f3659f]
at
2011-04-22 14:35:13
on branch trunk
— OFHTTPRequest: Make it possible to not store the data in an OFDataArray.
This way, it's possible to do downloads without keeping the whole file
in memory. (user: js, size: 7016) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
{
OFURL *URL;
of_http_request_type_t requestType;
OFString *queryString;
OFDictionary *headers;
BOOL redirectsFromHTTPSToHTTPAllowed;
id <OFHTTPRequestDelegate> delegate;
}
#ifdef OF_HAVE_PROPERTIES
@property (copy) OFURL *URL;
@property (assign) of_http_request_type_t requestType;
@property (copy) OFString *queryString;
@property (copy) OFDictionary *headers;
@property (assign) BOOL redirectsFromHTTPSToHTTPAllowed;
@property (retain) id <OFHTTPRequestDelegate> delegate;
#endif
/**
* \return A new, autoreleased OFHTTPRequest
*/
+ request;
| > > | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
{
OFURL *URL;
of_http_request_type_t requestType;
OFString *queryString;
OFDictionary *headers;
BOOL redirectsFromHTTPSToHTTPAllowed;
id <OFHTTPRequestDelegate> delegate;
BOOL storesData;
}
#ifdef OF_HAVE_PROPERTIES
@property (copy) OFURL *URL;
@property (assign) of_http_request_type_t requestType;
@property (copy) OFString *queryString;
@property (copy) OFDictionary *headers;
@property (assign) BOOL redirectsFromHTTPSToHTTPAllowed;
@property (retain) id <OFHTTPRequestDelegate> delegate;
@property (assign) BOOL storesData;
#endif
/**
* \return A new, autoreleased OFHTTPRequest
*/
+ request;
|
| ︙ | ︙ | |||
193 194 195 196 197 198 199 200 201 202 203 204 205 206 | - (void)setDelegate: (id <OFHTTPRequestDelegate>)delegate; /** * \return The delegate for the HTTP request. */ - (id <OFHTTPRequestDelegate>)delegate; /** * Performs the HTTP request and returns an OFHTTPRequestResult. * * \return An OFHTTPRequestResult with the result of the HTTP request */ - (OFHTTPRequestResult*)perform; | > > > > > > > > > > > > > > > | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | - (void)setDelegate: (id <OFHTTPRequestDelegate>)delegate; /** * \return The delegate for the HTTP request. */ - (id <OFHTTPRequestDelegate>)delegate; /** * Sets whether an OFDataArray with the data is created. * * Setting this to NO is only useful if you are using the delegate to handle the * data. * * \param enabled Whether to store the data in an OFDataArray */ - (void)setStoresData: (BOOL)enabled; /** * \return Whether an OFDataArray with the data is created */ - (BOOL)storesData; /** * Performs the HTTP request and returns an OFHTTPRequestResult. * * \return An OFHTTPRequestResult with the result of the HTTP request */ - (OFHTTPRequestResult*)perform; |
| ︙ | ︙ |