@@ -89,10 +89,13 @@ */ @interface OFHTTPClient: OFObject { id _delegate; bool _insecureRedirectsAllowed; + OFTCPSocket *_socket; + OFURL *_lastURL; + OFHTTPRequestReply *_lastReply; } #ifdef OF_HAVE_PROPERTIES @property (assign) id delegate; @property bool insecureRedirectsAllowed; @@ -147,9 +150,14 @@ * 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) @end