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
f6f908a5
Commit
f6f908a5
authored
Mar 04, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asio: Make impl() const
parent
b0c1986a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
src/asio_client_request.cc
src/asio_client_request.cc
+1
-1
src/asio_client_response.cc
src/asio_client_response.cc
+1
-1
src/asio_http2_handler.cc
src/asio_http2_handler.cc
+2
-2
src/includes/nghttp2/asio_http2.h
src/includes/nghttp2/asio_http2.h
+2
-2
src/includes/nghttp2/asio_http2_client.h
src/includes/nghttp2/asio_http2_client.h
+2
-2
No files found.
src/asio_client_request.cc
View file @
f6f908a5
...
@@ -54,7 +54,7 @@ const std::string &request::method() const { return impl_->method(); }
...
@@ -54,7 +54,7 @@ const std::string &request::method() const { return impl_->method(); }
const
header_map
&
request
::
header
()
const
{
return
impl_
->
header
();
}
const
header_map
&
request
::
header
()
const
{
return
impl_
->
header
();
}
request_impl
&
request
::
impl
()
{
return
*
impl_
;
}
request_impl
&
request
::
impl
()
const
{
return
*
impl_
;
}
}
// namespace client
}
// namespace client
}
// namespace asio_http2
}
// namespace asio_http2
...
...
src/asio_client_response.cc
View file @
f6f908a5
...
@@ -46,7 +46,7 @@ int64_t response::content_length() const { return impl_->content_length(); }
...
@@ -46,7 +46,7 @@ int64_t response::content_length() const { return impl_->content_length(); }
const
header_map
&
response
::
header
()
const
{
return
impl_
->
header
();
}
const
header_map
&
response
::
header
()
const
{
return
impl_
->
header
();
}
response_impl
&
response
::
impl
()
{
return
*
impl_
;
}
response_impl
&
response
::
impl
()
const
{
return
*
impl_
;
}
}
// namespace client
}
// namespace client
}
// namespace asio_http2
}
// namespace asio_http2
...
...
src/asio_http2_handler.cc
View file @
f6f908a5
...
@@ -66,7 +66,7 @@ void request::on_data(data_cb cb) const {
...
@@ -66,7 +66,7 @@ void request::on_data(data_cb cb) const {
void
request
::
on_end
(
void_cb
cb
)
const
{
return
impl_
->
on_end
(
std
::
move
(
cb
));
}
void
request
::
on_end
(
void_cb
cb
)
const
{
return
impl_
->
on_end
(
std
::
move
(
cb
));
}
request_impl
&
request
::
impl
()
{
return
*
impl_
;
}
request_impl
&
request
::
impl
()
const
{
return
*
impl_
;
}
response
::
response
()
:
impl_
(
make_unique
<
response_impl
>
())
{}
response
::
response
()
:
impl_
(
make_unique
<
response_impl
>
())
{}
...
@@ -85,7 +85,7 @@ unsigned int response::status_code() const { return impl_->status_code(); }
...
@@ -85,7 +85,7 @@ unsigned int response::status_code() const { return impl_->status_code(); }
bool
response
::
started
()
const
{
return
impl_
->
started
();
}
bool
response
::
started
()
const
{
return
impl_
->
started
();
}
response_impl
&
response
::
impl
()
{
return
*
impl_
;
}
response_impl
&
response
::
impl
()
const
{
return
*
impl_
;
}
request_impl
::
request_impl
()
:
stream_
(
nullptr
),
pushed_
(
false
)
{}
request_impl
::
request_impl
()
:
stream_
(
nullptr
),
pushed_
(
false
)
{}
...
...
src/includes/nghttp2/asio_http2.h
View file @
f6f908a5
...
@@ -149,7 +149,7 @@ public:
...
@@ -149,7 +149,7 @@ public:
bool
pushed
()
const
;
bool
pushed
()
const
;
// Application must not call this directly.
// Application must not call this directly.
request_impl
&
impl
();
request_impl
&
impl
()
const
;
private:
private:
std
::
unique_ptr
<
request_impl
>
impl_
;
std
::
unique_ptr
<
request_impl
>
impl_
;
...
@@ -183,7 +183,7 @@ public:
...
@@ -183,7 +183,7 @@ public:
bool
started
()
const
;
bool
started
()
const
;
// Application must not call this directly.
// Application must not call this directly.
response_impl
&
impl
();
response_impl
&
impl
()
const
;
private:
private:
std
::
unique_ptr
<
response_impl
>
impl_
;
std
::
unique_ptr
<
response_impl
>
impl_
;
...
...
src/includes/nghttp2/asio_http2_client.h
View file @
f6f908a5
...
@@ -50,7 +50,7 @@ public:
...
@@ -50,7 +50,7 @@ public:
const
header_map
&
header
()
const
;
const
header_map
&
header
()
const
;
response_impl
&
impl
();
response_impl
&
impl
()
const
;
private:
private:
std
::
unique_ptr
<
response_impl
>
impl_
;
std
::
unique_ptr
<
response_impl
>
impl_
;
...
@@ -82,7 +82,7 @@ public:
...
@@ -82,7 +82,7 @@ public:
const
header_map
&
header
()
const
;
const
header_map
&
header
()
const
;
request_impl
&
impl
();
request_impl
&
impl
()
const
;
private:
private:
std
::
unique_ptr
<
request_impl
>
impl_
;
std
::
unique_ptr
<
request_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