21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#endif
@class OFHTTPClient;
@class OFHTTPRequest;
@class OFHTTPResponse;
@class OFURL;
@class OFTCPSocket;
@class OFDictionary;
@class OFDataArray;
/*!
* @protocol OFHTTPClientDelegate OFHTTPClient.h ObjFW/OFHTTPClient.h
*
* @brief A delegate for OFHTTPClient.
*/
|
|
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#endif
@class OFHTTPClient;
@class OFHTTPRequest;
@class OFHTTPResponse;
@class OFURL;
@class OFTCPSocket;
@class OFDictionary OF_GENERIC(KeyType, ObjectType);
@class OFDataArray;
/*!
* @protocol OFHTTPClientDelegate OFHTTPClient.h ObjFW/OFHTTPClient.h
*
* @brief A delegate for OFHTTPClient.
*/
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
* @param client The OFHTTPClient which received the headers
* @param headers The headers received
* @param statusCode The status code received
* @param request The request for which the headers and status code have been
* received
*/
- (void)client: (OFHTTPClient*)client
didReceiveHeaders: (OFDictionary*)headers
statusCode: (int)statusCode
request: (OFHTTPRequest*)request;
/*!
* @brief A callback which is called when an OFHTTPClient wants to follow a
* redirect.
*
|
|
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
* @param client The OFHTTPClient which received the headers
* @param headers The headers received
* @param statusCode The status code received
* @param request The request for which the headers and status code have been
* received
*/
- (void)client: (OFHTTPClient*)client
didReceiveHeaders: (OFDictionary OF_GENERIC(OFString*, OFString*)*)headers
statusCode: (int)statusCode
request: (OFHTTPRequest*)request;
/*!
* @brief A callback which is called when an OFHTTPClient wants to follow a
* redirect.
*
|