|
48 | 48 | #include "http_response.hpp" |
49 | 49 | #include "http_request.hpp" |
50 | 50 | #include "http_response_builder.hpp" |
51 | | -#include "details/http_endpoint.hpp" |
| 51 | +#include "http_endpoint.hpp" |
52 | 52 | #include "string_utilities.hpp" |
53 | 53 | #include "create_webserver.hpp" |
54 | 54 | #include "details/comet_manager.hpp" |
@@ -224,10 +224,10 @@ void webserver::request_completed ( |
224 | 224 |
|
225 | 225 | bool webserver::register_resource(const std::string& resource, http_resource* hrm, bool family) |
226 | 226 | { |
227 | | - details::http_endpoint idx(resource, family, true, regex_checking); |
| 227 | + http_endpoint idx(resource, family, true, regex_checking); |
228 | 228 |
|
229 | | - pair<map<details::http_endpoint, http_resource*>::iterator, bool> result = registered_resources.insert( |
230 | | - map<details::http_endpoint, http_resource*>::value_type(idx, hrm) |
| 229 | + pair<map<http_endpoint, http_resource*>::iterator, bool> result = registered_resources.insert( |
| 230 | + map<http_endpoint, http_resource*>::value_type(idx, hrm) |
231 | 231 | ); |
232 | 232 |
|
233 | 233 | if(result.second) |
@@ -435,7 +435,7 @@ bool webserver::stop() |
435 | 435 |
|
436 | 436 | void webserver::unregister_resource(const string& resource) |
437 | 437 | { |
438 | | - details::http_endpoint he(resource); |
| 438 | + http_endpoint he(resource); |
439 | 439 | this->registered_resources.erase(he); |
440 | 440 | this->registered_resources.erase(he.url_complete); |
441 | 441 | } |
@@ -813,11 +813,11 @@ int webserver::finalize_answer( |
813 | 813 | if(regex_checking) |
814 | 814 | { |
815 | 815 |
|
816 | | - map<details::http_endpoint, http_resource*>::iterator found_endpoint; |
| 816 | + map<http_endpoint, http_resource*>::iterator found_endpoint; |
817 | 817 |
|
818 | | - details::http_endpoint endpoint(st_url, false, false, regex_checking); |
| 818 | + http_endpoint endpoint(st_url, false, false, regex_checking); |
819 | 819 |
|
820 | | - map<details::http_endpoint, http_resource*>::iterator it; |
| 820 | + map<http_endpoint, http_resource*>::iterator it; |
821 | 821 |
|
822 | 822 | size_t len = 0; |
823 | 823 | size_t tot_len = 0; |
|
0 commit comments