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
aaef7985
Commit
aaef7985
authored
Mar 05, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asio: Add server::response::io_service()
parent
0753fcd6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
src/asio_http2_handler.cc
src/asio_http2_handler.cc
+8
-0
src/asio_http2_handler.h
src/asio_http2_handler.h
+2
-0
src/includes/nghttp2/asio_http2_server.h
src/includes/nghttp2/asio_http2_server.h
+3
-0
No files found.
src/asio_http2_handler.cc
View file @
aaef7985
...
...
@@ -77,6 +77,10 @@ void response::resume() const { impl_->resume(); }
unsigned
int
response
::
status_code
()
const
{
return
impl_
->
status_code
();
}
boost
::
asio
::
io_service
&
response
::
io_service
()
const
{
return
impl_
->
io_service
();
}
bool
response
::
started
()
const
{
return
impl_
->
started
();
}
response_impl
&
response
::
impl
()
const
{
return
*
impl_
;
}
...
...
@@ -184,6 +188,10 @@ void response_impl::resume() {
}
}
boost
::
asio
::
io_service
&
response_impl
::
io_service
()
{
return
stream_
->
handler
()
->
io_service
();
}
bool
response_impl
::
started
()
const
{
return
started_
;
}
void
response_impl
::
pushed
(
bool
f
)
{
pushed_
=
f
;
}
...
...
src/asio_http2_handler.h
View file @
aaef7985
...
...
@@ -84,6 +84,8 @@ public:
response
*
push
(
boost
::
system
::
error_code
&
ec
,
std
::
string
method
,
std
::
string
raw_path_query
,
header_map
h
=
{})
const
;
boost
::
asio
::
io_service
&
io_service
();
void
start_response
();
unsigned
int
status_code
()
const
;
...
...
src/includes/nghttp2/asio_http2_server.h
View file @
aaef7985
...
...
@@ -98,6 +98,9 @@ public:
// Returns true if response has been started.
bool
started
()
const
;
// Returns boost::asio::io_service this response is running on.
boost
::
asio
::
io_service
&
io_service
()
const
;
// Application must not call this directly.
response_impl
&
impl
()
const
;
...
...
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