comparison OrthancFramework/Sources/RestApi/RestApiPath.cpp @ 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
66 components_[i] = ""; 66 components_[i] = "";
67 } 67 }
68 } 68 }
69 } 69 }
70 70
71 bool RestApiPath::Match(IHttpHandler::Arguments& components, 71 bool RestApiPath::Match(HttpToolbox::Arguments& components,
72 UriComponents& trailing, 72 UriComponents& trailing,
73 const std::string& uriRaw) const 73 const std::string& uriRaw) const
74 { 74 {
75 UriComponents uri; 75 UriComponents uri;
76 Toolbox::SplitUriComponents(uri, uriRaw); 76 Toolbox::SplitUriComponents(uri, uriRaw);
77 return Match(components, trailing, uri); 77 return Match(components, trailing, uri);
78 } 78 }
79 79
80 bool RestApiPath::Match(IHttpHandler::Arguments& components, 80 bool RestApiPath::Match(HttpToolbox::Arguments& components,
81 UriComponents& trailing, 81 UriComponents& trailing,
82 const UriComponents& uri) const 82 const UriComponents& uri) const
83 { 83 {
84 assert(uri_.size() == components_.size()); 84 assert(uri_.size() == components_.size());
85 85
123 } 123 }
124 124
125 125
126 bool RestApiPath::Match(const UriComponents& uri) const 126 bool RestApiPath::Match(const UriComponents& uri) const
127 { 127 {
128 IHttpHandler::Arguments components; 128 HttpToolbox::Arguments components;
129 UriComponents trailing; 129 UriComponents trailing;
130 return Match(components, trailing, uri); 130 return Match(components, trailing, uri);
131 } 131 }
132 132
133 133