@@ -154,67 +154,5 @@ * * @return The remote address from which the request originates */ - (OFString*)remoteAddress; @end - -/*! - * @brief A class for storing the result of an HTTP request. - */ -@interface OFHTTPRequestResult: OFObject -{ - short statusCode; - OFDataArray *data; - OFDictionary *headers; -} - -#ifdef OF_HAVE_PROPERTIES -@property (readonly) short statusCode; -@property (readonly, copy) OFDictionary *headers; -@property (readonly, retain) OFDataArray *data; -#endif - -/*! - * @brief Creates a new OFHTTPRequestResult. - * - * @param status The HTTP status code replied to the request - * @param headers The headers replied to the request - * @param data The data replied to the request - * @return A new OFHTTPRequestResult - */ -+ resultWithStatusCode: (short)status - headers: (OFDictionary*)headers - data: (OFDataArray*)data; - -/*! - * @brief Initializes an already allocated OFHTTPRequestResult. - * - * @param status The HTTP status code replied to the request - * @param headers The headers replied to the request - * @param data The data replied to the request - * @return An initialized OFHTTPRequestResult - */ -- initWithStatusCode: (short)status - headers: (OFDictionary*)headers - data: (OFDataArray*)data; - -/*! - * @brief Returns the state code of the result of the HTTP request. - * - * @return The status code of the result of the HTTP request - */ -- (short)statusCode; - -/*! - * @brief Returns the headers of the result of the HTTP request. - * - * @return The headers of the result of the HTTP request - */ -- (OFDictionary*)headers; - -/*! - * @brief Returns the data received for the HTTP request. - * - * @return The data received for the HTTP request - */ -- (OFDataArray*)data; -@end