*/
class XMLTOOL_API HTTPResponse : public GenericResponse {
protected:
- HTTPResponse() {}
+ HTTPResponse();
public:
- virtual ~HTTPResponse() {}
+ virtual ~HTTPResponse();
- void setContentType(const char* type) {
- setResponseHeader("Content-Type", type);
- }
+ void setContentType(const char* type);
/**
* Sets or clears a response header.
XMLTOOLING_HTTP_STATUS_ERROR = 500
};
- using GenericResponse::sendResponse;
-
- long sendError(std::istream& inputStream) {
- return sendResponse(inputStream, XMLTOOLING_HTTP_STATUS_ERROR);
- }
+ long sendError(std::istream& inputStream);
- long sendResponse(std::istream& inputStream) {
- return sendResponse(inputStream, XMLTOOLING_HTTP_STATUS_OK);
- }
+ using GenericResponse::sendResponse;
+ long sendResponse(std::istream& inputStream);
};
};