Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
4d62572b
Commit
4d62572b
authored
Feb 08, 2016
by
octal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put client in an Experimental namespace as it's ready to merge but still experimental
parent
7e3ff879
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
examples/http_client.cc
examples/http_client.cc
+2
-2
include/client.h
include/client.h
+4
-0
include/http.h
include/http.h
+5
-1
src/client/client.cc
src/client/client.cc
+4
-0
No files found.
examples/http_client.cc
View file @
4d62572b
...
...
@@ -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
);
...
...
include/client.h
View file @
4d62572b
...
...
@@ -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
...
...
include/http.h
View file @
4d62572b
...
...
@@ -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
;
...
...
src/client/client.cc
View file @
4d62572b
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment