11 #include "XBDateTime.h" 12 #include "network/httprequesthandler/IHTTPRequestHandler.h" 34 void SetFile(
const std::string& file,
int responseStatus);
36 void SetCanHandleRanges(
bool canHandleRanges) { m_canHandleRanges = canHandleRanges; }
37 void SetCanBeCached(
bool canBeCached) { m_canBeCached = canBeCached; }
38 void SetLastModifiedDate(
const struct __stat64 *buffer);
43 bool m_canHandleRanges =
true;
44 bool m_canBeCached =
true;
Definition: IHTTPRequestHandler.h:66
bool CanBeCached() const override
Whether the HTTP response can be cached.
Definition: HTTPFileHandler.h:24
MHD_RESULT HandleRequest() override
Handles the HTTP request.
Definition: HTTPFileHandler.cpp:28
Definition: HTTPFileHandler.h:16
DateTime class, which uses FileTime as it's base.
Definition: XBDateTime.h:63
bool GetLastModifiedDate(CDateTime &lastModified) const override
Returns the last modification date of the response data.
Definition: HTTPFileHandler.cpp:33
bool CanHandleRanges() const override
Whether the HTTP response could also be provided in ranges.
Definition: HTTPFileHandler.h:23
std::string GetResponseFile() const override
Returns the path to the file that should be returned as the response.
Definition: HTTPFileHandler.h:28
Definition: IHTTPRequestHandler.h:85
std::string GetRedirectUrl() const override
Returns the URL to which the request should be redirected.
Definition: HTTPFileHandler.h:27