@@ -45,8 +45,6 @@ namespace details
4545 struct cache_entry ;
4646};
4747
48- using namespace http ;
49-
5048struct byte_string
5149{
5250 public:
@@ -86,9 +84,9 @@ class http_response_builder
8684 _realm(" " ),
8785 _opaque(" " ),
8886 _reload_nonce(false ),
89- _headers(std::map<std::string, std::string, header_comparator>()),
90- _footers(std::map<std::string, std::string, header_comparator>()),
91- _cookies(std::map<std::string, std::string, header_comparator>()),
87+ _headers(std::map<std::string, std::string, http:: header_comparator>()),
88+ _footers(std::map<std::string, std::string, http:: header_comparator>()),
89+ _cookies(std::map<std::string, std::string, http:: header_comparator>()),
9290 _topics(std::vector<std::string>()),
9391 _keepalive_secs(-1 ),
9492 _keepalive_msg(" " ),
@@ -98,7 +96,7 @@ class http_response_builder
9896 _decorate_response(&http_response::decorate_response_str),
9997 _enqueue_response(&http_response::enqueue_response_str)
10098 {
101- _headers[http_utils::http_header_content_type] = content_type;
99+ _headers[http:: http_utils::http_header_content_type] = content_type;
102100 }
103101
104102 http_response_builder (
@@ -113,9 +111,9 @@ class http_response_builder
113111 _realm (" " ),
114112 _opaque (" " ),
115113 _reload_nonce (false ),
116- _headers (std::map<std::string, std::string, header_comparator>()),
117- _footers (std::map<std::string, std::string, header_comparator>()),
118- _cookies (std::map<std::string, std::string, header_comparator>()),
114+ _headers (std::map<std::string, std::string, http:: header_comparator>()),
115+ _footers (std::map<std::string, std::string, http:: header_comparator>()),
116+ _cookies (std::map<std::string, std::string, http:: header_comparator>()),
119117 _topics (std::vector<std::string>()),
120118 _keepalive_secs (-1 ),
121119 _keepalive_msg (" " ),
@@ -125,7 +123,7 @@ class http_response_builder
125123 _decorate_response (&http_response::decorate_response_str),
126124 _enqueue_response (&http_response::enqueue_response_str)
127125 {
128- _headers[http_utils::http_header_content_type] = content_type;
126+ _headers[http:: http_utils::http_header_content_type] = content_type;
129127 }
130128
131129 http_response_builder (const http_response_builder& b):
@@ -243,7 +241,7 @@ class http_response_builder
243241
244242 http_response_builder& shoutCAST_response ()
245243 {
246- _response_code |= http_utils::shoutcast_response;
244+ _response_code |= http:: http_utils::shoutcast_response;
247245 return *this ;
248246 }
249247
@@ -269,9 +267,9 @@ class http_response_builder
269267 std::string _realm;
270268 std::string _opaque;
271269 bool _reload_nonce;
272- std::map<std::string, std::string, header_comparator> _headers;
273- std::map<std::string, std::string, header_comparator> _footers;
274- std::map<std::string, std::string, header_comparator> _cookies;
270+ std::map<std::string, std::string, http:: header_comparator> _headers;
271+ std::map<std::string, std::string, http:: header_comparator> _footers;
272+ std::map<std::string, std::string, http:: header_comparator> _cookies;
275273 std::vector<std::string> _topics;
276274 int _keepalive_secs;
277275 std::string _keepalive_msg;
0 commit comments