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
0f1dea4f
Commit
0f1dea4f
authored
Jan 10, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move HPACK tools from hdtest to src
parent
25a6596e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
32 additions
and
59 deletions
+32
-59
Makefile.am
Makefile.am
+1
-1
README.rst
README.rst
+8
-9
configure.ac
configure.ac
+4
-5
hdtest/Makefile.am
hdtest/Makefile.am
+0
-42
hdtest/README.rst
hdtest/README.rst
+0
-1
src/Makefile.am
src/Makefile.am
+19
-1
src/comp_helper.c
src/comp_helper.c
+0
-0
src/comp_helper.h
src/comp_helper.h
+0
-0
src/deflatehd.c
src/deflatehd.c
+0
-0
src/inflatehd.c
src/inflatehd.c
+0
-0
No files found.
Makefile.am
View file @
0f1dea4f
...
...
@@ -20,7 +20,7 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SUBDIRS
=
lib src examples
hdtest
python tests doc
SUBDIRS
=
lib src examples python tests doc
ACLOCAL_AMFLAGS
=
-I
m4
...
...
README.rst
View file @
0f1dea4f
...
...
@@ -79,8 +79,7 @@ resource) in ``nghttp``, the following packages are needed:
* libxml2 >= 2.7.7
The header compression test tools in hdtest directory require the
following package:
The HPACK tools require the following package:
* jansson >= 2.5
...
...
@@ -418,14 +417,14 @@ the outside HTTP/2.0 proxy through HTTP proxy::
--===================---> HTTP/2.0 Proxy
(HTTP proxy tunnel) (e.g., nghttpx -s)
H
eader compression test
tools
-----------
------------------
H
PACK
tools
-----------
The ``
hdtest`` directory contains header compression test tools. The
``deflatehd`` is command-line header compression tool. The
``inflatehd`` is command-line header decompression tool. Both tools
read input from stdin and write output to stdout. The errors are
written to
stderr. They take JSON as input and output.
The ``
src`` directory contains HPACK tools. The ``deflatehd`` is
command-line header compression tool. The ``inflatehd`` is
command-line header decompression tool. Both tools read input from
stdin and write output to stdout. The errors are written to
stderr. They take JSON as input and output.
deflatehd - header compressor
+++++++++++++++++++++++++++++
...
...
configure.ac
View file @
0f1dea4f
...
...
@@ -244,12 +244,12 @@ fi
AM_CONDITIONAL([ENABLE_EXAMPLES], [ test "x${enable_examples}" = "xyes" ])
#
hdtest
requires jansson
#
HPACK tools
requires jansson
if test "x${have_jansson}" = "xyes"; then
enable_h
dtest
=yes
enable_h
pack_tools
=yes
fi
AM_CONDITIONAL([ENABLE_H
DTEST], [ test "x${enable_hdtest
}" = "xyes" ])
AM_CONDITIONAL([ENABLE_H
PACK_TOOLS], [ test "x${enable_hpack_tools
}" = "xyes" ])
# failmalloc tests
AM_CONDITIONAL([ENABLE_FAILMALLOC], [ test "x${enable_failmalloc}" = "xyes" ])
...
...
@@ -328,7 +328,6 @@ AC_CONFIG_FILES([
tests/testdata/Makefile
src/Makefile
examples/Makefile
hdtest/Makefile
python/Makefile
doc/Makefile
doc/conf.py
...
...
@@ -358,7 +357,7 @@ AC_MSG_NOTICE([summary of build options:
Jansson: ${have_jansson}
Src: ${enable_src}
Examples: ${enable_examples}
H
dtest: ${enable_hdtest
}
H
PACK tools: ${enable_hpack_tools
}
Failmalloc: ${request_failmalloc}
Python: ${PYTHON} ${PYTHON_VERSION}
Cython: ${CYTHON}
...
...
hdtest/Makefile.am
deleted
100644 → 0
View file @
25a6596e
# nghttp2 - HTTP/2.0 C Library
# Copyright (c) 2013 Tatsuhiro Tsujikawa
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
if
ENABLE_HDTEST
AM_CFLAGS
=
-Wall
AM_CPPFLAGS
=
-Wall
-I
$(srcdir)
/../lib/includes
-I
$(builddir)
/../lib/includes
\
-I
$(srcdir)
/../lib @JANSSON_CFLAGS@ @DEFS@
AM_LDFLAGS
=
@JANSSON_LIBS@
LDADD
=
$(top_builddir)
/lib/libnghttp2.la
bin_PROGRAMS
=
inflatehd deflatehd
COMMON_SRCS
=
comp_helper.c comp_helper.h
inflatehd_SOURCES
=
inflatehd.c
$(COMMON_SRCS)
deflatehd_SOURCES
=
deflatehd.c
$(COMMON_SRCS)
endif
# ENABLE_HDTEST
EXTRA_DIST
=
README.rst
hdtest/README.rst
deleted
100644 → 0
View file @
25a6596e
Tools for header compression
src/Makefile.am
View file @
0f1dea4f
...
...
@@ -27,17 +27,23 @@ TESTS =
if
ENABLE_SRC
AM_CPPFLAGS
=
-Wall
-I
$(srcdir)
/../lib/includes
-I
$(builddir)
/../lib/includes
\
AM_CPPFLAGS
=
\
-Wall
\
-I
$(top_srcdir)
/lib/includes
\
-I
$(top_builddir)
/lib/includes
\
-I
$(top_srcdir)
/lib
\
@LIBSPDYLAY_CFLAGS@
\
@XML_CPPFLAGS@
\
@LIBEVENT_OPENSSL_CFLAGS@
\
@OPENSSL_CFLAGS@
\
@JANSSON_CFLAGS@
\
@DEFS@
AM_LDFLAGS
=
\
@LIBSPDYLAY_LIBS@
\
@XML_LIBS@
\
@LIBEVENT_OPENSSL_LIBS@
\
@OPENSSL_LIBS@
\
@JANSSON_LIBS@
\
@SRC_LIBS@
LDADD
=
$(top_builddir)
/lib/libnghttp2.la
...
...
@@ -113,4 +119,16 @@ nghttpx_unittest_LDADD = libnghttpx.a ${LDADD} ${AM_LDFLAGS} \
TESTS
+=
nghttpx-unittest
endif
# HAVE_CUNIT
if
ENABLE_HPACK_TOOLS
bin_PROGRAMS
+=
inflatehd deflatehd
HPACK_TOOLS_COMMON_SRCS
=
comp_helper.c comp_helper.h
inflatehd_SOURCES
=
inflatehd.c
$(HPACK_TOOLS_COMMON_SRCS)
deflatehd_SOURCES
=
deflatehd.c
$(HPACK_TOOLS_COMMON_SRCS)
endif
# ENABLE_HPACK_TOOLS
endif
# ENABLE_SRC
hdtest
/comp_helper.c
→
src
/comp_helper.c
View file @
0f1dea4f
File moved
hdtest
/comp_helper.h
→
src
/comp_helper.h
View file @
0f1dea4f
File moved
hdtest
/deflatehd.c
→
src
/deflatehd.c
View file @
0f1dea4f
File moved
hdtest
/inflatehd.c
→
src
/inflatehd.c
View file @
0f1dea4f
File moved
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