Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/RestApi/RestApi.h Thu Jun 06 16:42:41 2019 +0200 +++ b/Core/RestApi/RestApi.h Thu Jun 06 18:54:27 2019 +0200 @@ -47,6 +47,16 @@ public: static void AutoListChildren(RestApiGetCall& call); + virtual IStream* CreateStreamHandler(RequestOrigin origin, + const char* remoteIp, + const char* username, + HttpMethod method, + const UriComponents& uri, + const Arguments& headers) + { + return NULL; + } + virtual bool Handle(HttpOutput& output, RequestOrigin origin, const char* remoteIp,