@@ -35,18 +35,20 @@ OFURL *URL; of_http_request_type_t requestType; OFDictionary *headers; OFDataArray *POSTData; OFString *MIMEType; + OFString *remoteAddress; } #ifdef OF_HAVE_PROPERTIES @property (copy) OFURL *URL; @property of_http_request_type_t requestType; @property (copy) OFDictionary *headers; @property (retain) OFDataArray *POSTData; @property (copy) OFString *MIMEType; +@property (copy) OFString *remoteAddress; #endif /*! * @brief Creates a new OFHTTPRequest. * @@ -137,10 +139,24 @@ * @brief Returns the MIME type for the POST data. * * @return The MIME type for the POST data */ - (OFString*)MIMEType; + +/*! + * @brief Sets the remote address from which the request originates. + * + * @param remoteAddress The remote address from which the request originates + */ +- (void)setRemoteAddress: (OFString*)remoteAddress; + +/*! + * @brief Returns the remote address from which the request originates. + * + * @return The remote address from which the request originates + */ +- (OFString*)remoteAddress; @end /*! * @brief A class for storing the result of an HTTP request. */