module documentation

Undocumented

Class ​Async​Iterator​Byte​Stream Undocumented
Class ​Iterator​Byte​Stream Undocumented
Class ​Unattached​Stream If a request or response is serialized using pickle, then it is no longer attached to a stream for I/O purposes. Any stream operations should result in httpx.StreamClosed.
Function encode​_content Undocumented
Function encode​_html Undocumented
Function encode​_json Undocumented
Function encode​_multipart​_data Undocumented
Function encode​_request Handles encoding the given content, data, files, and json, returning a two-tuple of (<headers>, <stream>).
Function encode​_response Handles encoding the given content, returning a two-tuple of (<headers>, <stream>).
Function encode​_text Undocumented
Function encode​_urlencoded​_data Undocumented
def encode_content(content):

Undocumented

Parameters
content:Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]]Undocumented
Returns
Tuple[Dict[str, str], Union[SyncByteStream, AsyncByteStream]]Undocumented
def encode_html(html):

Undocumented

Parameters
html:strUndocumented
Returns
Tuple[Dict[str, str], ByteStream]Undocumented
def encode_json(json):

Undocumented

Parameters
json:AnyUndocumented
Returns
Tuple[Dict[str, str], ByteStream]Undocumented
def encode_multipart_data(data, files, boundary=None):

Undocumented

Parameters
data:dictUndocumented
files:RequestFilesUndocumented
boundary:bytesUndocumented
Returns
Tuple[Dict[str, str], MultipartStream]Undocumented
def encode_request(content=None, data=None, files=None, json=None, boundary=None):
Handles encoding the given content, data, files, and json, returning a two-tuple of (<headers>, <stream>).
Parameters
content:RequestContentUndocumented
data:RequestDataUndocumented
files:RequestFilesUndocumented
json:AnyUndocumented
boundary:bytesUndocumented
Returns
Tuple[Dict[str, str], Union[SyncByteStream, AsyncByteStream]]Undocumented
def encode_response(content=None, text=None, html=None, json=None):
Handles encoding the given content, returning a two-tuple of (<headers>, <stream>).
Parameters
content:ResponseContentUndocumented
text:strUndocumented
html:strUndocumented
json:AnyUndocumented
Returns
Tuple[Dict[str, str], Union[SyncByteStream, AsyncByteStream]]Undocumented
def encode_text(text):

Undocumented

Parameters
text:strUndocumented
Returns
Tuple[Dict[str, str], ByteStream]Undocumented
def encode_urlencoded_data(data):

Undocumented

Parameters
data:dictUndocumented
Returns
Tuple[Dict[str, str], ByteStream]Undocumented