Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
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
nghttp2
Commits
690a1622
Commit
690a1622
authored
Mar 05, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asio: Add const qualifier to client::session member functions
parent
aaef7985
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
src/asio_client_session.cc
src/asio_client_session.cc
+11
-7
src/includes/nghttp2/asio_http2_client.h
src/includes/nghttp2/asio_http2_client.h
+7
-7
No files found.
src/asio_client_session.cc
View file @
690a1622
...
@@ -49,24 +49,28 @@ session::session(boost::asio::io_service &io_service,
...
@@ -49,24 +49,28 @@ session::session(boost::asio::io_service &io_service,
session
::~
session
()
{}
session
::~
session
()
{}
void
session
::
on_connect
(
connect_cb
cb
)
{
impl_
->
on_connect
(
std
::
move
(
cb
));
}
void
session
::
on_connect
(
connect_cb
cb
)
const
{
impl_
->
on_connect
(
std
::
move
(
cb
));
}
void
session
::
on_error
(
error_cb
cb
)
{
impl_
->
on_error
(
std
::
move
(
cb
));
}
void
session
::
on_error
(
error_cb
cb
)
const
{
impl_
->
on_error
(
std
::
move
(
cb
));
}
void
session
::
shutdown
()
{
impl_
->
shutdown
();
}
void
session
::
shutdown
()
const
{
impl_
->
shutdown
();
}
boost
::
asio
::
io_service
&
session
::
io_service
()
{
return
impl_
->
io_service
();
}
boost
::
asio
::
io_service
&
session
::
io_service
()
const
{
return
impl_
->
io_service
();
}
const
request
*
session
::
submit
(
boost
::
system
::
error_code
&
ec
,
const
request
*
session
::
submit
(
boost
::
system
::
error_code
&
ec
,
const
std
::
string
&
method
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
header_map
h
)
{
const
std
::
string
&
uri
,
header_map
h
)
const
{
return
impl_
->
submit
(
ec
,
method
,
uri
,
read_cb
(),
std
::
move
(
h
));
return
impl_
->
submit
(
ec
,
method
,
uri
,
read_cb
(),
std
::
move
(
h
));
}
}
const
request
*
session
::
submit
(
boost
::
system
::
error_code
&
ec
,
const
request
*
session
::
submit
(
boost
::
system
::
error_code
&
ec
,
const
std
::
string
&
method
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
std
::
string
data
,
const
std
::
string
&
uri
,
std
::
string
data
,
header_map
h
)
{
header_map
h
)
const
{
return
impl_
->
submit
(
ec
,
method
,
uri
,
string_reader
(
std
::
move
(
data
)),
return
impl_
->
submit
(
ec
,
method
,
uri
,
string_reader
(
std
::
move
(
data
)),
std
::
move
(
h
));
std
::
move
(
h
));
}
}
...
@@ -74,7 +78,7 @@ const request *session::submit(boost::system::error_code &ec,
...
@@ -74,7 +78,7 @@ const request *session::submit(boost::system::error_code &ec,
const
request
*
session
::
submit
(
boost
::
system
::
error_code
&
ec
,
const
request
*
session
::
submit
(
boost
::
system
::
error_code
&
ec
,
const
std
::
string
&
method
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
read_cb
cb
,
const
std
::
string
&
uri
,
read_cb
cb
,
header_map
h
)
{
header_map
h
)
const
{
return
impl_
->
submit
(
ec
,
method
,
uri
,
std
::
move
(
cb
),
std
::
move
(
h
));
return
impl_
->
submit
(
ec
,
method
,
uri
,
std
::
move
(
cb
),
std
::
move
(
h
));
}
}
...
...
src/includes/nghttp2/asio_http2_client.h
View file @
690a1622
...
@@ -97,22 +97,22 @@ public:
...
@@ -97,22 +97,22 @@ public:
const
std
::
string
&
service
);
const
std
::
string
&
service
);
~
session
();
~
session
();
void
on_connect
(
connect_cb
cb
);
void
on_connect
(
connect_cb
cb
)
const
;
void
on_error
(
error_cb
cb
);
void
on_error
(
error_cb
cb
)
const
;
void
shutdown
();
void
shutdown
()
const
;
boost
::
asio
::
io_service
&
io_service
();
boost
::
asio
::
io_service
&
io_service
()
const
;
const
request
*
submit
(
boost
::
system
::
error_code
&
ec
,
const
request
*
submit
(
boost
::
system
::
error_code
&
ec
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
header_map
h
=
{});
header_map
h
=
{})
const
;
const
request
*
submit
(
boost
::
system
::
error_code
&
ec
,
const
request
*
submit
(
boost
::
system
::
error_code
&
ec
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
std
::
string
data
,
header_map
h
=
{});
std
::
string
data
,
header_map
h
=
{})
const
;
const
request
*
submit
(
boost
::
system
::
error_code
&
ec
,
const
request
*
submit
(
boost
::
system
::
error_code
&
ec
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
const
std
::
string
&
method
,
const
std
::
string
&
uri
,
read_cb
cb
,
header_map
h
=
{});
read_cb
cb
,
header_map
h
=
{})
const
;
private:
private:
std
::
unique_ptr
<
session_impl
>
impl_
;
std
::
unique_ptr
<
session_impl
>
impl_
;
...
...
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