Skip to content

Commit

Permalink
remove proposed _HttpBody
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnzZ committed Apr 11, 2022
1 parent c1f7675 commit 3310c1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions web_poet/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
T_headers = TypeVar("T_headers", bound="_HttpHeaders")


class _HttpBody(bytes):
"""A container for holding the raw HTTP body in bytes format."""

pass


class _HttpHeaders(CIMultiDict):
"""A base container for holding the HTTP headers.
Expand Down
6 changes: 3 additions & 3 deletions web_poet/page_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
http_content_type_encoding
)

from web_poet._base import _HttpHeaders, _HttpBody
from web_poet._base import _HttpHeaders
from web_poet.utils import memoizemethod_noargs


class HttpRequestBody(_HttpBody):
class HttpRequestBody(bytes):
"""A container for holding the raw HTTP request body in bytes format."""

pass


class HttpResponseBody(_HttpBody):
class HttpResponseBody(bytes):
"""A container for holding the raw HTTP response body in bytes format."""

def declared_encoding(self) -> Optional[str]:
Expand Down

0 comments on commit 3310c1b

Please sign in to comment.