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
dcba568f
Commit
dcba568f
authored
Aug 24, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python: make assoc_stream_id and stream_user_data in submit_syn_stream optional
parent
595806a9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
doc/python.rst
doc/python.rst
+1
-1
python/spdylay.pyx
python/spdylay.pyx
+2
-2
python/spdylay_tests.py
python/spdylay_tests.py
+10
-10
No files found.
doc/python.rst
View file @
dcba568f
...
...
@@ -408,7 +408,7 @@ Session Objects
The :py:class:`InvalidArgumentError` will be raised if the *nv*
includes empty name or ``None`` value.
.. py:method:: Session.submit_syn_stream(flags,
assoc_stream_id, pri, nv, stream_user_data
)
.. py:method:: Session.submit_syn_stream(flags,
pri, nv, assoc_stream_id=0, stream_user_data=None
)
Submits SYN_STREAM frame. The *flags* is bitwise OR of the
following values:
...
...
python/spdylay.pyx
View file @
dcba568f
...
...
@@ -855,8 +855,8 @@ cdef class Session:
elif
rv
==
cspdylay
.
SPDYLAY_ERR_NOMEM
:
raise
MemoryError
()
cpdef
submit_syn_stream
(
self
,
flags
,
assoc_stream_id
,
pri
,
nv
,
stream_user_data
):
cpdef
submit_syn_stream
(
self
,
flags
,
pri
,
nv
,
assoc_stream_id
=
0
,
stream_user_data
=
None
):
cdef
int
rv
cdef
char
**
cnv
nv
=
pynv_encode
(
nv
)
...
...
python/spdylay_tests.py
View file @
dcba568f
...
...
@@ -123,8 +123,8 @@ class SpdylayTests(unittest.TestCase):
self
.
client_streams
.
recv_data
.
getvalue
())
def
test_submit_syn_stream_and_syn_stream
(
self
):
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_FIN
,
0
,
2
,
[(
u':path'
,
u'/'
)]
,
None
)
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_FIN
,
2
,
[(
u':path'
,
u'/'
)])
self
.
client_session
.
send
()
self
.
server_session
.
recv
()
...
...
@@ -148,8 +148,8 @@ class SpdylayTests(unittest.TestCase):
self
.
assertEqual
((
u':version'
,
u'HTTP/1.1'
),
frame
.
nv
[
0
])
def
test_submit_rst_stream
(
self
):
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_FIN
,
0
,
2
,
[(
u':path'
,
u'/'
)]
,
None
)
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_FIN
,
2
,
[(
u':path'
,
u'/'
)])
self
.
client_session
.
send
()
self
.
server_session
.
recv
()
...
...
@@ -267,8 +267,8 @@ class SpdylayTests(unittest.TestCase):
self
.
client_session
.
send
()
def
test_submit_data
(
self
):
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_NONE
,
0
,
2
,
[(
u':path'
,
u'/'
)]
,
None
)
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_NONE
,
2
,
[(
u':path'
,
u'/'
)])
self
.
client_session
.
send
()
self
.
server_session
.
recv
()
...
...
@@ -286,8 +286,8 @@ class SpdylayTests(unittest.TestCase):
self
.
server_streams
.
recv_data
.
getvalue
())
def
test_submit_headers
(
self
):
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_NONE
,
0
,
2
,
[(
u':path'
,
u'/'
)]
,
None
)
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_NONE
,
2
,
[(
u':path'
,
u'/'
)])
self
.
client_session
.
send
()
self
.
server_session
.
recv
()
...
...
@@ -318,8 +318,8 @@ class SpdylayTests(unittest.TestCase):
self
.
assertEqual
(
1
,
frame
.
unique_id
)
def
test_submit_window_update
(
self
):
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_NONE
,
0
,
2
,
[(
u':path'
,
u'/'
)]
,
None
)
self
.
client_session
.
submit_syn_stream
(
spdylay
.
CTRL_FLAG_NONE
,
2
,
[(
u':path'
,
u'/'
)])
self
.
client_session
.
send
()
self
.
server_session
.
recv
()
...
...
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