Skip to content

Commit

Permalink
Move URL and QueryParams to new '_urls.py' module (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Feb 16, 2022
1 parent 2072aa2 commit d07c4b4
Show file tree
Hide file tree
Showing 5 changed files with 780 additions and 774 deletions.
3 changes: 2 additions & 1 deletion httpx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
WriteError,
WriteTimeout,
)
from ._models import URL, Cookies, Headers, QueryParams, Request, Response
from ._models import Cookies, Headers, Request, Response
from ._status_codes import codes
from ._transports.asgi import ASGITransport
from ._transports.base import AsyncBaseTransport, BaseTransport
from ._transports.default import AsyncHTTPTransport, HTTPTransport
from ._transports.mock import MockTransport
from ._transports.wsgi import WSGITransport
from ._types import AsyncByteStream, SyncByteStream
from ._urls import URL, QueryParams

try:
from ._main import main
Expand Down
3 changes: 2 additions & 1 deletion httpx/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
TooManyRedirects,
request_context,
)
from ._models import URL, Cookies, Headers, QueryParams, Request, Response
from ._models import Cookies, Headers, Request, Response
from ._status_codes import codes
from ._transports.asgi import ASGITransport
from ._transports.base import AsyncBaseTransport, BaseTransport
Expand All @@ -45,6 +45,7 @@
URLTypes,
VerifyTypes,
)
from ._urls import URL, QueryParams
from ._utils import (
NetRCInfo,
Timer,
Expand Down

0 comments on commit d07c4b4

Please sign in to comment.