@@ -47,13 +47,13 @@ * * @param client The OFHTTPClient that created a socket * @param socket The socket created by the OFHTTPClient * @param request The request for which the socket was created */ -- (void)client: (OFHTTPClient*)client - didCreateSocket: (OF_KINDOF(OFTCPSocket*))socket - request: (OFHTTPRequest*)request; +- (void)client: (OFHTTPClient *)client + didCreateSocket: (OF_KINDOF(OFTCPSocket *))socket + request: (OFHTTPRequest *)request; /*! * @brief A callback which is called when an OFHTTPClient received headers. * * @param client The OFHTTPClient which received the headers @@ -60,14 +60,14 @@ * @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 +- (void)client: (OFHTTPClient *)client + didReceiveHeaders: (OFDictionary OF_GENERIC(OFString *, OFString *) *)headers statusCode: (int)statusCode - request: (OFHTTPRequest*)request; + request: (OFHTTPRequest *)request; /*! * @brief A callback which is called when an OFHTTPClient wants to follow a * redirect. * @@ -85,15 +85,15 @@ * @param statusCode The status code for the redirection * @param request The request for which the OFHTTPClient wants to redirect * @param response The response indicating the redirect * @return A boolean whether the OFHTTPClient should follow the redirect */ -- (bool)client: (OFHTTPClient*)client - shouldFollowRedirect: (OFURL*)URL +- (bool)client: (OFHTTPClient *)client + shouldFollowRedirect: (OFURL *)URL statusCode: (int)statusCode - request: (OFHTTPRequest*)request - response: (OFHTTPResponse*)response; + request: (OFHTTPRequest *)request + response: (OFHTTPResponse *)response; @end /*! * @class OFHTTPClient OFHTTPClient.h ObjFW/OFHTTPClient.h * @@ -129,11 +129,11 @@ /*! * @brief Performs the specified HTTP request and returns an OFHTTPResponse. * * @return An OFHTTPResponse with the response for the HTTP request */ -- (OFHTTPResponse*)performRequest: (OFHTTPRequest*)request; +- (OFHTTPResponse *)performRequest: (OFHTTPRequest *)request; /*! * @brief Performs the HTTP request and returns an OFHTTPResponse. * * @param request The request to perform @@ -140,15 +140,15 @@ * @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 OFHTTPResponse * @return An OFHTTPResponse with the response for the HTTP request */ -- (OFHTTPResponse*)performRequest: (OFHTTPRequest*)request - redirects: (size_t)redirects; +- (OFHTTPResponse *)performRequest: (OFHTTPRequest *)request + redirects: (size_t)redirects; /*! * @brief Closes connections that are still open due to keep-alive. */ - (void)close; @end OF_ASSUME_NONNULL_END