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
e0fa6a27
Commit
e0fa6a27
authored
Oct 29, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdtest: Clean up entry names and help message
parent
250d6ede
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
hdtest/comp_helper.c
hdtest/comp_helper.c
+1
-1
hdtest/deflatehd.c
hdtest/deflatehd.c
+3
-3
hdtest/inflatehd.c
hdtest/inflatehd.c
+1
-1
No files found.
hdtest/comp_helper.c
View file @
e0fa6a27
...
...
@@ -60,7 +60,7 @@ json_t* dump_header_table(nghttp2_hd_context *context)
if
(
context
->
role
==
NGHTTP2_HD_ROLE_DEFLATE
)
{
json_object_set_new
(
obj
,
"localSize"
,
json_integer
(
context
->
local_hd_table_bufsize
));
json_object_set_new
(
obj
,
"
localMax
Size"
,
json_object_set_new
(
obj
,
"
maxLocal
Size"
,
json_integer
(
context
->
local_hd_table_bufsize_max
));
}
return
obj
;
...
...
hdtest/deflatehd.c
View file @
e0fa6a27
...
...
@@ -47,7 +47,7 @@ static void output_to_json(nghttp2_hd_context *deflater,
json_object_set_new
(
obj
,
"seq"
,
json_integer
(
seq
));
json_object_set_new
(
obj
,
"inputLen"
,
json_integer
(
inputlen
));
json_object_set_new
(
obj
,
"outputLength"
,
json_integer
(
len
));
json_object_set_new
(
obj
,
"
P
ercentageOfOriginalSize"
,
json_object_set_new
(
obj
,
"
p
ercentageOfOriginalSize"
,
json_real
((
double
)
len
/
inputlen
*
100
));
to_hex
(
hex
,
buf
,
len
);
json_object_set_new
(
obj
,
"output"
,
json_pack
(
"s#"
,
hex
,
len
*
2
));
...
...
hdtest/inflatehd.c
View file @
e0fa6a27
...
...
@@ -146,7 +146,7 @@ static void print_help(void)
"Reads JSON array from stdin and outputs inflated name/value pairs
\n
"
"in JSON array.
\n
"
"The element of input array must be a JSON object. Each object must
\n
"
"have following key:
\n
"
"have
at least
following key:
\n
"
"
\n
"
" output: deflated header block in hex-string.
\n
"
"
\n
"
...
...
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