Differences From Artifact [157d08fbae]:
- File
src/OFHTTPClient.h
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 4756) [annotate] [blame] [check-ins using]
To Artifact [838f77c97e]:
- File src/OFHTTPClient.h — part of check-in [c195c1f098] at 2013-03-15 17:04:17 on branch trunk — OFHTTPClient: Implement "Connection: keep-alive". (user: js, size: 4922) [annotate] [blame] [check-ins using]
︙ | |||
87 88 89 90 91 92 93 94 95 96 97 98 99 100 | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | + + + | /*! * @brief A class for performing HTTP requests. */ @interface OFHTTPClient: OFObject { id <OFHTTPClientDelegate> _delegate; bool _insecureRedirectsAllowed; OFTCPSocket *_socket; OFURL *_lastURL; OFHTTPRequestReply *_lastReply; } #ifdef OF_HAVE_PROPERTIES @property (assign) id <OFHTTPClientDelegate> delegate; @property bool insecureRedirectsAllowed; #endif |
︙ | |||
145 146 147 148 149 150 151 152 153 154 155 | 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | + + + + + | * @param 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 OFHTTPRequestReply * @return An OFHTTPRequestReply with the reply of the HTTP request */ - (OFHTTPRequestReply*)performRequest: (OFHTTPRequest*)request redirects: (size_t)redirects; /*! * @brief Closes connections that are still open due to keep-alive. */ - (void)close; @end @interface OFObject (OFHTTPClientDelegate) <OFHTTPClientDelegate> @end |