mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 11:01:38 +00:00
d791807add
Added gzip, deflate decoding support in HTTP using libz. If compiled with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header to a HTTP server. If a server returns "Content-Encoding: gzip" or "Content-Encoding: deflate" then, aria2 decodes the response body on the fly and writes decoded data to a local disk. * README * README.html * configure.ac * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively. * m4/libz.m4 * src/Decoder.h * src/DownloadCommand.cc * src/DownloadCommand.h * src/Exception.h * src/GZipDecoder.cc * src/GZipDecoder.h * src/HttpHeader.cc * src/HttpHeader.h * src/HttpRequest.cc * src/HttpRequest.h * src/HttpResponse.cc * src/HttpResponse.h * src/HttpResponseCommand.cc * src/Makefile.am * test/GZipDecoderTest.cc * test/HttpRequestTest.cc * test/HttpResponseTest.cc * test/Makefile.am * test/Makefile.in * test/gzip_decode_test.gz
16 lines
461 B
Plaintext
16 lines
461 B
Plaintext
dnl ARIA2_ARG_WITH(PACKAGE)
|
|
dnl wrapper for AC_ARG_WITH with default value 'yes'.
|
|
AC_DEFUN([ARIA2_ARG_WITH],
|
|
[AC_ARG_WITH([$1],
|
|
AC_HELP_STRING([--with-$1], [use $1 if it is installed.]),
|
|
[with_$1=$withval], [with_$1=yes])]
|
|
)
|
|
|
|
dnl ARIA2_ARG_ENABLE(FEATURE)
|
|
dnl wrapper for AC_ARG_ENABLE with default value 'yes'.
|
|
AC_DEFUN([ARIA2_ARG_ENABLE],
|
|
[AC_ARG_ENABLE([$1],
|
|
AC_HELP_STRING([--enable-$1], [enable $1 support.]),
|
|
[enable_$1=$withval], [enable_$1=yes])]
|
|
)
|