|
| CHTTPJsonRpcHandler ()=default |
|
| ~CHTTPJsonRpcHandler () override=default |
|
IHTTPRequestHandler * | Create (const HTTPRequest &request) const override |
| Creates a new HTTP request handler for the given request.
|
|
bool | CanHandleRequest (const HTTPRequest &request) const override |
| Checks if the HTTP request handler can handle the given request.
|
|
MHD_RESULT | HandleRequest () override |
| Handles the HTTP request.
|
|
HttpResponseRanges | GetResponseData () const override |
| Returns the ranges with raw data belonging to the response.
|
|
int | GetPriority () const override |
| Returns the priority of the HTTP request handler.
|
|
Public Member Functions inherited from IHTTPRequestHandler |
virtual | ~IHTTPRequestHandler ()=default |
|
virtual bool | CanHandleRanges () const |
| Whether the HTTP response could also be provided in ranges.
|
|
virtual bool | CanBeCached () const |
| Whether the HTTP response can be cached.
|
|
virtual int | GetMaximumAgeForCaching () const |
| Returns the maximum age (in seconds) for which the response can be cached.
|
|
virtual bool | GetLastModifiedDate (CDateTime &lastModified) const |
| Returns the last modification date of the response data.
|
|
virtual std::string | GetRedirectUrl () const |
| Returns the URL to which the request should be redirected.
|
|
virtual std::string | GetResponseFile () const |
| Returns the path to the file that should be returned as the response.
|
|
const HTTPRequest & | GetRequest () const |
| Returns the HTTP request handled by the HTTP request handler.
|
|
bool | IsRequestRanged () const |
| Returns true if the HTTP request is ranged, otherwise false.
|
|
void | SetRequestRanged (bool ranged) |
| Sets whether the HTTP request contains ranges or not.
|
|
void | SetResponseStatus (int status) |
| Sets the response status of the HTTP response.
|
|
bool | HasResponseHeader (const std::string &field) const |
| Checks if the given HTTP header field is part of the response details.
|
|
bool | AddResponseHeader (const std::string &field, const std::string &value, bool allowMultiple=false) |
| Adds the given HTTP header field and value to the response details.
|
|
const HTTPResponseDetails & | GetResponseDetails () const |
| Returns the HTTP response header details.
|
|
void | AddPostField (const std::string &key, const std::string &value) |
| Adds the given key-value pair extracted from the HTTP POST data.
|
|
bool | AddPostData (const char *data, size_t size) |
| Adds the given raw HTTP POST data.
|
|