Please sign in to comment.
bug20472. Improve mechanism for skipping headers/trailers
deflate-streams change definition of _compress-spec_ as follows: :gzip - create a deflate stream w/ gzip headers (same) :zlib - create a deflate stream w/ zlib headers (was :deflate) :deflate - create a deflate stream w/ NO headers. the meaning of :deflate as currently documented is confusing since to zlib users, it suggests no headers will be added but in truth a compressed stream with zlib headers is what you get. inflate-streams add a :compression keyword argument that mirrors deflate-streams, with a couple of extra allowed values :gzip - (default). Automatically read past gzip header and trailer :zlib - read past zlib header/trailer :deflate - no headers in this stream. (header-fn trailer-fn) - Instead of one of the above methods, users may specify their own functions for skipping past headers and trailers wrapping the DEFLATE stream. This can be used to support less common encoding methods, such as zip or pkzip, etc. The inflate module does not capture any information from header and trailers, so the custom functions can also be used to capture this information if needed. The function accepts a single argument, which is the input-handle of the inflate-stream. It should return nil or the number of bytes read. nil - equivalent to the :deflate option. No callbacks are made. (*) gzip is the default compression method to maintain compatibility with aserve compression. The :skip-gzip-header keyword is deprecated, but no warning is issued if used. This is to maintain compatibility with AllegroServe. If a compression method is specified, the header and trailer are always automatically skipped. skip-gzip-trailer, skip-zlib-header, and skip-zlib-trailer are exported from the :util.zip package. Internally, a number of test routines have also been updated to remove calls to skip-gzip-header that are no longer necessary. Are there user visible changes in this commit? yes Are tests included for new features? yes Tests run: make all <release-notes> bug20472. Improve way headers and trailers around deflate streams are handled. See description above. It's the same. </release-notes> <documentation> bug20472. (or from text above) </documentation> Change-Id: I0e90e1f2850b2a4da64e3d9cbf2cdac08847e956
- Loading branch information...
Showing with 170 additions and 34 deletions.