Skip to content
Myr

__init__.py

This file

Path

httpx/__init__.py

101 lines · 2.2 KiB · Python

Last changed by

Map HTTPCore exceptions (#1044)Florimond Mancabefore adoptionbacc2d1

History of this file

Take it

The walk stopped after 200 commits: lines older than bc54dd0 point at it.

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 1why, one step back
1from .__version__ import __description__, __title__, __version__

Switch to private module names (#785)Florimond Mancabefore adoption82dc6f3

lines 2–6why, one step back
2from ._api import delete, get, head, options, patch, post, put, request, stream
3from ._auth import Auth, BasicAuth, DigestAuth4from ._client import AsyncClient, Client5from ._config import PoolLimits, Proxy, Timeout6from ._exceptions import (

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

lines 7–8why, one step back
7 CloseError,
8 ConnectError,

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 9–13why, one step back
9 ConnectTimeout,
10 CookieConflict,11 DecodingError,12 HTTPError,13 InvalidURL,

Adding NetworkError to __init__ (#814)Primož Godecbefore adoption3e12fd0

line 14why, one step back
14 NetworkError,

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 15–18why, one step back
15 NotRedirectResponse,
16 PoolTimeout,17 ProtocolError,18 ProxyError,

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 19why, one step back
19 ReadError,

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 20why, one step back
20 ReadTimeout,

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 21why, one step back
21 RedirectError,

Repurpose RedirectBodyUnavailable as RequestBodyUnavailable (#690)Florimond Mancabefore adoption910aa90

line 22why, one step back
22 RequestBodyUnavailable,

Public Auth API (#732)Tom Christiebefore adoption12dd157

line 23why, one step back
23 RequestNotRead,

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 24–26why, one step back
24 ResponseClosed,
25 ResponseNotRead,26 StreamConsumed,

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 27why, one step back
27 StreamError,

Map HTTPCore exceptions (#1044)Florimond Mancabefore adoptionbacc2d1

line 28why, one step back
28 TimeoutException,

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 29why, one step back
29 TooManyRedirects,

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 30why, one step back
30 WriteError,

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 31–32why, one step back
31 WriteTimeout,
32)

Switch to private module names (#785)Florimond Mancabefore adoption82dc6f3

lines 33–34why, one step back
33from ._models import URL, Cookies, Headers, QueryParams, Request, Response
34from ._status_codes import StatusCode, codes

Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9

line 35why, one step back
35from ._transports.asgi import ASGIDispatch, ASGITransport

Add urllib3proxy transport to init (#979)Tom Christiebefore adoptionc30acf0

line 36why, one step back
36from ._transports.urllib3 import URLLib3ProxyTransport, URLLib3Transport

Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9

line 37why, one step back
37from ._transports.wsgi import WSGIDispatch, WSGITransport

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 38–53why, one step back
38
39__all__ = [40 "__description__",41 "__title__",42 "__version__",43 "delete",44 "get",45 "head",46 "options",47 "patch",48 "post",49 "patch",50 "put",51 "request",52 "stream",53 "codes",

Reintroduce sync API. (#735)Tom Christiebefore adoptionee37a76

line 54why, one step back
54 "ASGIDispatch",

Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9

line 55why, one step back
55 "ASGITransport",

Rename Client to AsyncClient (with compat synonym) (#680)Florimond Mancabefore adoptione284b84

line 56why, one step back
56 "AsyncClient",

Public Auth API (#732)Tom Christiebefore adoption12dd157

line 57why, one step back
57 "Auth",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 58–61why, one step back
58 "BasicAuth",
59 "Client",60 "DigestAuth",61 "PoolLimits",

Prep for introducing SyncClient (#713)Tom Christiebefore adoptionf17ab37

line 62why, one step back
62 "Proxy",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 63why, one step back
63 "Timeout",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

lines 64–65why, one step back
64 "CloseError",
65 "ConnectError",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 66–70why, one step back
66 "ConnectTimeout",
67 "CookieConflict",68 "DecodingError",69 "HTTPError",70 "InvalidURL",

Adding NetworkError to __init__ (#814)Primož Godecbefore adoption3e12fd0

line 71why, one step back
71 "NetworkError",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 72–74why, one step back
72 "NotRedirectResponse",
73 "PoolTimeout",74 "ProtocolError",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 75why, one step back
75 "ReadError",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 76why, one step back
76 "ReadTimeout",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 77why, one step back
77 "RedirectError",

Repurpose RedirectBodyUnavailable as RequestBodyUnavailable (#690)Florimond Mancabefore adoption910aa90

line 78why, one step back
78 "RequestBodyUnavailable",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 79–80why, one step back
79 "ResponseClosed",
80 "ResponseNotRead",

Public Auth API (#732)Tom Christiebefore adoption12dd157

line 81why, one step back
81 "RequestNotRead",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 82why, one step back
82 "StreamConsumed",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 83why, one step back
83 "StreamError",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 84why, one step back
84 "ProxyError",

Map HTTPCore exceptions (#1044)Florimond Mancabefore adoptionbacc2d1

line 85why, one step back
85 "TimeoutException",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 86why, one step back
86 "TooManyRedirects",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 87why, one step back
87 "WriteError",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 88–89why, one step back
88 "WriteTimeout",
89 "URL",

Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9

line 90why, one step back
90 "URLLib3Transport",

Add urllib3proxy transport to init (#979)Tom Christiebefore adoptionc30acf0

line 91why, one step back
91 "URLLib3ProxyTransport",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

lines 92–98why, one step back
92 "StatusCode",
93 "Cookies",94 "Headers",95 "QueryParams",96 "Request",97 "Response",98 "DigestAuth",

Reintroduce sync API. (#735)Tom Christiebefore adoptionee37a76

line 99why, one step back
99 "WSGIDispatch",

Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9

line 100why, one step back
100 "WSGITransport",

Backend operations like .read(), .write() now have a manadatory timeout argument. (#611)Tom Christiebefore adoptionbc54dd0

line 101why, one step back
101]