Skip to content

Commit

Permalink
Merge pull request #348 from sirosen/docfix
Browse files Browse the repository at this point in the history
Add attributes to HTTPrettyRequest docstring
  • Loading branch information
gabrielfalcao committed Sep 9, 2018
2 parents 3d6668d + fcd4701 commit 43e9b85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion httpretty/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def FALLBACK_FUNCTION(x):


class HTTPrettyRequest(BaseHTTPRequestHandler, BaseClass):
"""
r"""
Represents a HTTP request. It takes a valid multi-line,
``\r\n`` separated string with HTTP headers and parse them out using
the internal `parse_request` method.
Expand All @@ -147,6 +147,10 @@ class HTTPrettyRequest(BaseHTTPRequestHandler, BaseClass):
attributes. Please notice that if you need a single value from a
query string you will need to get it manually like:
``body`` -> the request body as a string
``parsed_body`` -> the request body parsed by ``parse_request_body``
.. testcode::
>>> request.querystring
Expand Down

0 comments on commit 43e9b85

Please sign in to comment.