Commit 4d62572b authored by octal's avatar octal

Put client in an Experimental namespace as it's ready to merge but still experimental

parent 7e3ff879
......@@ -12,8 +12,8 @@
using namespace Net;
int main() {
Net::Http::Client client("http://supnetwork.org:9080");
auto opts = Net::Http::Client::options()
Http::Experimental::Client client("http://supnetwork.org:9080");
auto opts = Http::Experimental::Client::options()
.threads(1)
.maxConnections(20);
......
......@@ -18,6 +18,8 @@ namespace Net {
namespace Http {
namespace Experimental {
class ConnectionPool;
class Transport;
......@@ -278,6 +280,8 @@ private:
};
} // namespace Experimental
} // namespace Http
} // namespace Net
......
......@@ -35,6 +35,10 @@ namespace Private {
class BodyStep;
}
namespace Experimental {
class Client;
}
template< class CharT, class Traits>
std::basic_ostream<CharT, Traits>& crlf(std::basic_ostream<CharT, Traits>& os) {
static constexpr char CRLF[] = {0xD, 0xA};
......@@ -99,7 +103,7 @@ public:
friend class RequestBuilder;
// @Todo: try to remove the need for friend-ness here
friend class Client;
friend class Experimental::Client;
Request(const Request& other) = default;
Request& operator=(const Request& other) = default;
......
......@@ -15,6 +15,8 @@ namespace Net {
namespace Http {
namespace Experimental {
static constexpr const char* UA = "pistache/0.1";
namespace {
......@@ -612,6 +614,8 @@ Client::processRequestQueue() {
}
}
} // namespace Experimental
} // namespace Http
} // namespace Net
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment