Undocumented
Class | Logger |
Undocumented |
Class | NetRCInfo |
Undocumented |
Class | Timer |
Undocumented |
Class | URLPattern |
A utility class currently used for making lookups against proxy keys... |
Function | format_form_param |
Encode a name/value pair within a multipart form. |
Function | get_ca_bundle_from_env |
Undocumented |
Function | get_environment_proxies |
Gets proxy information from the environment |
Function | get_logger |
Get a logging.Logger instance, and optionally set up debug logging based on the HTTPX_LOG_LEVEL environment variable. |
Function | guess_content_type |
Undocumented |
Function | guess_json_utf |
Undocumented |
Function | is_known_encoding |
Return True if encoding is a known codec. |
Function | normalize_header_key |
Coerce str/bytes into a strictly byte-wise HTTP header key. |
Function | normalize_header_value |
Coerce str/bytes into a strictly byte-wise HTTP header value. |
Function | obfuscate_sensitive_headers |
Undocumented |
Function | parse_header_links |
No summary |
Function | peek_filelike_length |
Given a file-like stream object, return its length in number of bytes without reading it into memory. |
Function | port_or_default |
Undocumented |
Function | primitive_value_to_str |
Coerce a primitive data type into a string value. |
Function | same_origin |
Return 'True' if the given URLs share the same origin. |
Function | to_bytes |
Undocumented |
Function | to_bytes_or_str |
Undocumented |
Function | to_str |
Undocumented |
Function | unquote |
Undocumented |
Constant | SENSITIVE_HEADERS |
Undocumented |
Constant | TRACE_LOG_LEVEL |
Undocumented |
Constant | _HTML5_FORM_ENCODING_RE |
Undocumented |
Constant | _HTML5_FORM_ENCODING_REPLACEMENTS |
Undocumented |
Constant | _LOGGER_INITIALIZED |
Undocumented |
Variable | _null |
Undocumented |
Variable | _null2 |
Undocumented |
Variable | _null3 |
Undocumented |
Parameters | |
name:str | Undocumented |
value:typing.Union[ | Undocumented |
Returns | |
bytes | Undocumented |
Returns | |
typing.Dict[ | Undocumented |
logging.Logger
instance, and optionally
set up debug logging based on the HTTPX_LOG_LEVEL environment variable.Parameters | |
name:str | Undocumented |
Returns | |
Logger | Undocumented |
Undocumented
Parameters | |
filename:typing.Optional[ | Undocumented |
Returns | |
typing.Optional[ | Undocumented |
Undocumented
Parameters | |
data:bytes | Undocumented |
Returns | |
typing.Optional[ | Undocumented |
True
if encoding
is a known codec.Parameters | |
encoding:str | Undocumented |
Returns | |
bool | Undocumented |
Parameters | |
value:typing.Union[ | Undocumented |
lower:bool | Undocumented |
encoding:str | Undocumented |
Returns | |
bytes | Undocumented |
Parameters | |
value:typing.Union[ | Undocumented |
encoding:str | Undocumented |
Returns | |
bytes | Undocumented |
Undocumented
Parameters | |
items:typing.Iterable[ | Undocumented |
Returns | |
typing.Iterator[ | Undocumented |
Returns a list of parsed link headers, for more info see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link The generic syntax of those is: Link: < uri-reference >; param1=value1; param2="value2" So for instance: Link; '<http:/.../front.jpeg>; type="image/jpeg",<http://.../back.jpeg>;' would return
- [
- {"url": "http:/.../front.jpeg", "type": "image/jpeg"}, {"url": "http://.../back.jpeg"},
]
Parameters | |
value:str | HTTP Link entity-header field |
Returns | |
typing.List[ | list of parsed link headers |
Parameters | |
stream:typing.Any | Undocumented |
Returns | |
typing.Optional[ | Undocumented |
Undocumented
Parameters | |
url:URL | Undocumented |
Returns | |
typing.Optional[ | Undocumented |
Coerce a primitive data type into a string value.
Note that we prefer JSON-style 'true'/'false' for boolean values here.
Parameters | |
value:PrimitiveData | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
url:URL | Undocumented |
other:URL | Undocumented |
Returns | |
bool | Undocumented |
Undocumented
Parameters | |
value:typing.Union[ | Undocumented |
encoding:str | Undocumented |
Returns | |
bytes | Undocumented |
Undocumented
Parameters | |
value:str | Undocumented |
match_type_of:typing.AnyStr | Undocumented |
Returns | |
typing.AnyStr | Undocumented |
Undocumented
Parameters | |
value:typing.Union[ | Undocumented |
encoding:str | Undocumented |
Returns | |
str | Undocumented |