comparison Core/RestApi/RestApi.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
45 RestApiHierarchy root_; 45 RestApiHierarchy root_;
46 46
47 public: 47 public:
48 static void AutoListChildren(RestApiGetCall& call); 48 static void AutoListChildren(RestApiGetCall& call);
49 49
50 virtual IStream* CreateStreamHandler(RequestOrigin origin,
51 const char* remoteIp,
52 const char* username,
53 HttpMethod method,
54 const UriComponents& uri,
55 const Arguments& headers)
56 {
57 return NULL;
58 }
59
50 virtual bool Handle(HttpOutput& output, 60 virtual bool Handle(HttpOutput& output,
51 RequestOrigin origin, 61 RequestOrigin origin,
52 const char* remoteIp, 62 const char* remoteIp,
53 const char* username, 63 const char* username,
54 HttpMethod method, 64 HttpMethod method,