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
f1c7d3ed
Commit
f1c7d3ed
authored
Mar 05, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asio: Rename server::http2_stream as server::stream
parent
7ff38eeb
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
74 deletions
+73
-74
src/asio_http2_handler.cc
src/asio_http2_handler.cc
+59
-60
src/asio_http2_handler.h
src/asio_http2_handler.h
+14
-14
No files found.
src/asio_http2_handler.cc
View file @
f1c7d3ed
This diff is collapsed.
Click to expand it.
src/asio_http2_handler.h
View file @
f1c7d3ed
...
...
@@ -41,7 +41,7 @@ namespace asio_http2 {
namespace
server
{
class
http2_handler
;
class
http2_
stream
;
class
stream
;
class
serve_mux
;
class
request_impl
{
...
...
@@ -60,11 +60,11 @@ public:
void
on_data
(
data_cb
cb
);
void
stream
(
http2_
stream
*
s
);
void
stream
(
class
stream
*
s
);
void
call_on_data
(
const
uint8_t
*
data
,
std
::
size_t
len
);
private:
http2_stream
*
strea
m_
;
class
stream
*
str
m_
;
header_map
header_
;
std
::
string
method_
;
uri_ref
uri_
;
...
...
@@ -94,13 +94,13 @@ public:
bool
started
()
const
;
void
pushed
(
bool
f
);
void
push_promise_sent
(
bool
f
);
void
stream
(
http2_
stream
*
s
);
void
stream
(
class
stream
*
s
);
read_cb
::
result_type
call_read
(
uint8_t
*
data
,
std
::
size_t
len
,
uint32_t
*
data_flags
);
void
call_on_close
(
uint32_t
error_code
);
private:
http2_stream
*
strea
m_
;
class
stream
*
str
m_
;
header_map
header_
;
read_cb
read_cb_
;
close_cb
close_cb_
;
...
...
@@ -114,9 +114,9 @@ private:
bool
push_promise_sent_
;
};
class
http2_
stream
{
class
stream
{
public:
http2_
stream
(
http2_handler
*
h
,
int32_t
stream_id
);
stream
(
http2_handler
*
h
,
int32_t
stream_id
);
int32_t
get_stream_id
()
const
;
request
&
request
();
...
...
@@ -148,15 +148,15 @@ public:
int
start
();
http2_
stream
*
create_stream
(
int32_t
stream_id
);
stream
*
create_stream
(
int32_t
stream_id
);
void
close_stream
(
int32_t
stream_id
);
http2_
stream
*
find_stream
(
int32_t
stream_id
);
stream
*
find_stream
(
int32_t
stream_id
);
void
call_on_request
(
http2_stream
&
stream
);
void
call_on_request
(
stream
&
s
);
bool
should_stop
()
const
;
int
start_response
(
http2_stream
&
stream
);
int
start_response
(
stream
&
s
);
void
stream_error
(
int32_t
stream_id
,
uint32_t
error_code
);
...
...
@@ -166,9 +166,9 @@ public:
void
leave_callback
();
bool
inside_callback
()
const
;
void
resume
(
http2_stream
&
stream
);
void
resume
(
stream
&
s
);
response
*
push_promise
(
boost
::
system
::
error_code
&
ec
,
http2_stream
&
stream
,
response
*
push_promise
(
boost
::
system
::
error_code
&
ec
,
stream
&
s
,
std
::
string
method
,
std
::
string
raw_path_query
,
header_map
h
);
...
...
@@ -231,7 +231,7 @@ public:
}
private:
std
::
map
<
int32_t
,
std
::
shared_ptr
<
http2_
stream
>>
streams_
;
std
::
map
<
int32_t
,
std
::
shared_ptr
<
stream
>>
streams_
;
connection_write
writefun_
;
serve_mux
&
mux_
;
boost
::
asio
::
io_service
&
io_service_
;
...
...
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