comparison Core/HttpServer/FilesystemHttpHandler.h @ 3395:0ce9b4f5fdf5

new abstraction: IHttpHandler::CreateStreamHandler()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Jun 2019 18:54:27 +0200
parents 4e43e67f8ecf
children 962e5f00744b
comparison
equal deleted inserted replaced
3394:2f82ef41bf5a 3395:0ce9b4f5fdf5
51 51
52 public: 52 public:
53 FilesystemHttpHandler(const std::string& baseUri, 53 FilesystemHttpHandler(const std::string& baseUri,
54 const std::string& root); 54 const std::string& root);
55 55
56 virtual IStream* CreateStreamHandler(RequestOrigin origin,
57 const char* remoteIp,
58 const char* username,
59 HttpMethod method,
60 const UriComponents& uri,
61 const Arguments& headers)
62 {
63 return NULL;
64 }
65
56 virtual bool Handle( 66 virtual bool Handle(
57 HttpOutput& output, 67 HttpOutput& output,
58 RequestOrigin origin, 68 RequestOrigin origin,
59 const char* remoteIp, 69 const char* remoteIp,
60 const char* username, 70 const char* username,