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
d4b02762
Commit
d4b02762
authored
Aug 09, 2018
by
Jennifer Buehler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting for PR review
parent
7679b5fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
include/pistache/date.h
include/pistache/date.h
+2
-2
include/pistache/http.h
include/pistache/http.h
+3
-3
src/client/client.cc
src/client/client.cc
+3
-3
No files found.
include/pistache/date.h
View file @
d4b02762
...
...
@@ -4577,10 +4577,10 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
auto d = static_cast<int>(static_cast<unsigned>(fds.ymd.day()));
if (d < 10)
os << ' ';
os
<<
d
<<
' '
os << d << ' '
<< make_time(duration_cast<seconds>(fds.tod.to_duration()))
<< ' ' << fds.ymd.year();
}
else // *fmt == 'x'
{
...
...
include/pistache/http.h
View file @
d4b02762
...
...
@@ -100,7 +100,7 @@ namespace Uri {
bool
has
(
const
std
::
string
&
name
)
const
;
// Return empty string or "?key1=value1&key2=value2" if query exist
std
::
string
as_str
()
const
;
void
clear
()
{
params
.
clear
();
}
...
...
@@ -108,13 +108,13 @@ namespace Uri {
// \brief Return iterator to the beginning of the parameters map
std
::
unordered_map
<
std
::
string
,
std
::
string
>::
const_iterator
parameters_begin
()
const
{
return
params
.
begin
();
return
params
.
begin
();
}
// \brief Return iterator to the end of the parameters map
std
::
unordered_map
<
std
::
string
,
std
::
string
>::
const_iterator
parameters_end
()
const
{
return
params
.
begin
();
return
params
.
begin
();
}
// \brief returns all parameters given in the query
...
...
src/client/client.cc
View file @
d4b02762
/*
Mathieu Stefani, 29 janvier 2016
Implementation of the Http client
*/
...
...
@@ -381,7 +381,7 @@ Connection::connect(Address addr)
memset
(
&
hints
,
0
,
sizeof
(
struct
addrinfo
));
hints
.
ai_family
=
AF_UNSPEC
;
/* Allow IPv4 or IPv6 */
hints
.
ai_socktype
=
SOCK_STREAM
;
/* Stream socket */
hints
.
ai_flags
=
0
;
hints
.
ai_flags
=
0
;
hints
.
ai_protocol
=
0
;
auto
host
=
addr
.
host
();
...
...
@@ -407,7 +407,7 @@ Connection::connect(Address addr)
fd
=
sfd
;
transport_
->
asyncConnect
(
shared_from_this
(),
addr
->
ai_addr
,
addr
->
ai_addrlen
)
.
then
([
=
]()
{
.
then
([
=
]()
{
socklen_t
len
=
sizeof
(
saddr
);
getsockname
(
sfd
,
(
struct
sockaddr
*
)
&
saddr
,
&
len
);
connectionState_
=
Connected
;
...
...
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