Permalink
Browse files

add decompress param to HttpStream

  • Loading branch information...
benoitc committed May 3, 2011
1 parent 81e3c65 commit d2b91c1f201d082d269ef2c4c6db1bbd8312cc84
Showing with 3 additions and 3 deletions.
  1. +1 −1 http_parser/__init__.py
  2. +2 −2 http_parser/http.py
View
@@ -3,5 +3,5 @@
# This file is part of http_parser released under the MIT license.
# See the NOTICE for more information.
-version_info = (0, 3, 0)
+version_info = (0, 3, 1)
__version__ = ".".join(map(str, version_info))
View
@@ -25,15 +25,15 @@ class HttpStream(object):
create your own.
"""
- def __init__(self, stream, kind=HTTP_BOTH):
+ def __init__(self, stream, kind=HTTP_BOTH, decompress=False):
""" constructor of HttpStream.
:attr stream: an io.RawIOBase object
:attr kind: Int, could be 0 to parseonly requests,
1 to parse only responses or 2 if we want to let
the parser detect the type.
"""
- self.parser = HttpParser(kind=kind)
+ self.parser = HttpParser(kind=kind, decompress=decompress)
self.stream = stream
def _check_headers_complete(self):

0 comments on commit d2b91c1

Please sign in to comment.