diff options
Diffstat (limited to 'kombu/async/http/base.py')
-rw-r--r-- | kombu/async/http/base.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kombu/async/http/base.py b/kombu/async/http/base.py index 92c6bdf4..f8a8bc0a 100644 --- a/kombu/async/http/base.py +++ b/kombu/async/http/base.py @@ -1,3 +1,4 @@ +"""Base async HTTP client implementation.""" from __future__ import absolute_import, unicode_literals import sys @@ -26,6 +27,8 @@ def normalize_header(key): class Headers(dict): + """Represents a mapping of HTTP headers.""" + # TODO: This is just a regular dict and will not perform normalization # when looking up keys etc. @@ -176,8 +179,11 @@ class Response(object): self.error = HttpError(self.code, self.status, self) def raise_for_error(self): - """Raise :class:`~kombu.exceptions.HttpError` if the request resulted - in a HTTP error code.""" + """Raise if the request resulted in an HTTP error code. + + Raises: + :class:`~kombu.exceptions.HttpError` + """ if self.error: raise self.error |