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
683253e3
Commit
683253e3
authored
Oct 27, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare HTTP-draft-07/2.0
parent
bfa7dfb3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
27 deletions
+18
-27
README.rst
README.rst
+12
-22
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+2
-2
tests/nghttp2_npn_test.c
tests/nghttp2_npn_test.c
+4
-3
No files found.
README.rst
View file @
683253e3
...
...
@@ -4,40 +4,30 @@ nghttp2 - HTTP/2.0 C Library
This is an experimental implementation of Hypertext Transfer Protocol
version 2.0.
This branch implements HPACK-draft-04
(http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-04).
There are command-line header compression test tools in hdtest
directory. Check out deflatehd and inflatehd commands.
With these changes, the implemented protocol is not compatible with
HTTP-draft-06/2.0. Therefore, this branch uses
HTTP-nghttp2hpack-06/2.0 as protocol identifier. The following section
does not reflect this protocl identifier change. Read it by replacing
HTTP-draft-06/2.0 with HTTP-nghttp2hpack-06/2.0.
Development Status
------------------
We started to implement HTTP-draft-0
6
/2.0
(http://tools.ietf.org/html/draft-ietf-httpbis-http2-0
6
) and the
We started to implement HTTP-draft-0
7
/2.0
(http://tools.ietf.org/html/draft-ietf-httpbis-http2-0
7
) and the
header compression
(http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-0
3
).
(http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-0
7
).
The nghttp2 code base was forked from spdylay project.
=================== =================
Features HTTP-draft-06/2.0
=================== =================
Flow Control Done
Header Compression Done
Reprioritization Done
========================== =================
Features HTTP-draft-07/2.0
========================== =================
:authority Done
HPACK-draft-04 Done
SETTINGS_HEADER_TABLE_SIZE Done
SETTINGS_ENABLE_PUSH
FRAME_SIZE_ERROR Done
Header Continuation
Server Push Done
HTTP Upgrade Done
ALPN
NPN Done
=================== =================
========================== =================
Public Test Server
------------------
...
...
lib/includes/nghttp2/nghttp2.h
View file @
683253e3
...
...
@@ -40,13 +40,13 @@ extern "C" {
*
* The protocol version identification of this library supports.
*/
#define NGHTTP2_PROTO_VERSION_ID "HTTP-
nghttp2hpack-06
/2.0"
#define NGHTTP2_PROTO_VERSION_ID "HTTP-
draft-07
/2.0"
/**
* @macro
*
* The length of :macro:`NGHTTP2_PROTO_VERSION_ID`.
*/
#define NGHTTP2_PROTO_VERSION_ID_LEN
24
#define NGHTTP2_PROTO_VERSION_ID_LEN
17
struct
nghttp2_session
;
/**
...
...
tests/nghttp2_npn_test.c
View file @
683253e3
...
...
@@ -24,22 +24,23 @@
*/
#include "nghttp2_npn_test.h"
#include <string.h>
#include <CUnit/CUnit.h>
#include <nghttp2/nghttp2.h>
#include <string.h>
static
void
http2
(
void
)
{
const
unsigned
char
p
[]
=
{
8
,
'h'
,
't'
,
't'
,
'p'
,
'/'
,
'1'
,
'.'
,
'1'
,
24
,
'H'
,
'T'
,
'T'
,
'P'
,
'-'
,
'n'
,
'g'
,
'h'
,
't'
,
't'
,
'p'
,
'2'
,
'h'
,
'p'
,
'a'
,
'c'
,
'k'
,
'-'
,
'0'
,
'6
'
,
'/'
,
17
,
'H'
,
'T'
,
'T'
,
'P'
,
'-'
,
'd'
,
'r'
,
'a'
,
'f'
,
't'
,
'-'
,
'0'
,
'7
'
,
'/'
,
'2'
,
'.'
,
'0'
,
6
,
's'
,
'p'
,
'd'
,
'y'
,
'/'
,
'3'
};
unsigned
char
outlen
;
unsigned
char
*
out
;
CU_ASSERT
(
1
==
nghttp2_select_next_protocol
(
&
out
,
&
outlen
,
p
,
sizeof
(
p
)));
CU_ASSERT
(
24
==
outlen
);
CU_ASSERT
(
17
==
outlen
);
CU_ASSERT
(
memcmp
(
NGHTTP2_PROTO_VERSION_ID
,
out
,
outlen
)
==
0
);
}
...
...
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