Overview
| Comment: | OFHTTPRequestDelegate: Method name improvement. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
c64cb4c5f23ba828cfe1af925e8f3f13 |
| User & Date: | js on 2012-12-06 16:20:42 |
| Other Links: | manifest | tags |
Context
|
2012-12-06
| ||
| 16:38 | OFXMLElement: Add a few new methods. (check-in: 961f0da8a1 user: js tags: trunk) | |
| 16:20 | OFHTTPRequestDelegate: Method name improvement. (check-in: c64cb4c5f2 user: js tags: trunk) | |
| 11:00 | OFMapTable: Rotate hash by a random number of bits (check-in: 4857107479 user: js tags: trunk) | |
Changes
Modified src/OFHTTPRequest.h from [26ed4a79d0] to [269d67ae36].
| ︙ | ︙ | |||
92 93 94 95 96 97 98 | * redirect. If the maximum number of redirects has been reached already, this * callback will not be called. * * @param request The OFHTTPRequest which will follow a redirect * @param URL The URL to which it will follow a redirect * @return A boolean whether the OFHTTPRequest should follow the redirect */ | | | | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
* redirect. If the maximum number of redirects has been reached already, this
* callback will not be called.
*
* @param request The OFHTTPRequest which will follow a redirect
* @param URL The URL to which it will follow a redirect
* @return A boolean whether the OFHTTPRequest should follow the redirect
*/
- (BOOL)request: (OFHTTPRequest*)request
shouldFollowRedirectTo: (OFURL*)URL;
@end
/*!
* @brief A class for storing and performing HTTP requests.
*/
@interface OFHTTPRequest: OFObject
{
|
| ︙ | ︙ |
Modified src/OFHTTPRequest.m from [2442ea8723] to [21c09ca66b].
| ︙ | ︙ | |||
347 348 349 350 351 352 353 | OFURL *new; BOOL follow; new = [OFURL URLWithString: value relativeToURL: URL]; follow = [delegate request: self | | | 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
OFURL *new;
BOOL follow;
new = [OFURL URLWithString: value
relativeToURL: URL];
follow = [delegate request: self
shouldFollowRedirectTo: new];
if (!follow && delegate != nil) {
[serverHeaders setObject: value
forKey: key];
continue;
}
|
| ︙ | ︙ | |||
585 586 587 588 589 590 591 |
- (void)request: (OFHTTPRequest*)request
didReceiveData: (const char*)data
withLength: (size_t)len
{
}
| | | | 585 586 587 588 589 590 591 592 593 594 595 596 597 |
- (void)request: (OFHTTPRequest*)request
didReceiveData: (const char*)data
withLength: (size_t)len
{
}
- (BOOL)request: (OFHTTPRequest*)request
shouldFollowRedirectTo: (OFURL*)url
{
return YES;
}
@end
|