comparison OrthancFramework/Sources/RestApi/RestApiPath.h @ 4330:a01b1c9cbef4

moving generic type definitions from IHttpHandler to HttpToolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Nov 2020 14:39:10 +0100
parents b30a8de92ad9
children d9473bd5ed43
comparison
equal deleted inserted replaced
4329:9dc0e42f868b 4330:a01b1c9cbef4
20 **/ 20 **/
21 21
22 22
23 #pragma once 23 #pragma once
24 24
25 #include "../Toolbox.h" 25 #include "../HttpServer/HttpToolbox.h"
26 #include "../HttpServer/IHttpHandler.h"
27 26
28 #include <map> 27 #include <map>
29 28
30 namespace Orthanc 29 namespace Orthanc
31 { 30 {
38 37
39 public: 38 public:
40 explicit RestApiPath(const std::string& uri); 39 explicit RestApiPath(const std::string& uri);
41 40
42 // This version is slower 41 // This version is slower
43 bool Match(IHttpHandler::Arguments& components, 42 bool Match(HttpToolbox::Arguments& components,
44 UriComponents& trailing, 43 UriComponents& trailing,
45 const std::string& uriRaw) const; 44 const std::string& uriRaw) const;
46 45
47 bool Match(IHttpHandler::Arguments& components, 46 bool Match(HttpToolbox::Arguments& components,
48 UriComponents& trailing, 47 UriComponents& trailing,
49 const UriComponents& uri) const; 48 const UriComponents& uri) const;
50 49
51 bool Match(const UriComponents& uri) const; 50 bool Match(const UriComponents& uri) const;
52 51