client_reqrep

Module Contents

Classes

ContentDisposition()
RequestInfo()
Fingerprint(self,fingerprint)
ConnectionKey()
ClientRequest(self,method,url)
ClientResponse(self,method,url)

Functions

_merge_ssl_params(ssl,verify_ssl,ssl_context,fingerprint)
_is_expected_content_type(response_content_type,expected_content_type)
class ContentDisposition
class RequestInfo
real_url_default()
class Fingerprint(fingerprint)
__init__(fingerprint)
fingerprint()
check(transport)
_merge_ssl_params(ssl, verify_ssl, ssl_context, fingerprint)
class ConnectionKey
_is_expected_content_type(response_content_type, expected_content_type)
class ClientRequest(method, url)
__init__(method, url)
is_ssl()
ssl()
connection_key()
host()
port()
request_info()
update_host(url)

Update destination host, port and connection type (ssl).

update_version(version)

Convert request version to two elements tuple.

parser HTTP version ‘1.1’ => (1, 1)

update_headers(headers)

Update request headers.

update_auto_headers(skip_auto_headers)
update_cookies(cookies)

Update request cookies header.

update_content_encoding(data)

Set request content encoding.

update_transfer_encoding()

Analyze transfer-encoding header.

update_auth(auth)

Set basic auth.

update_body_from_data(body)
update_expect_continue(expect=False)
update_proxy(proxy, proxy_auth, proxy_headers)
keep_alive()
write_bytes(writer, conn)

Support coroutines that yields bytes objects.

send(conn)
close()
terminate()
_on_chunk_request_sent(chunk)
class ClientResponse(method, url)
__init__(method, url)
url()
url_obj()
real_url()
host()
_headers()
request_info()
content_disposition()
__del__(_warnings=warnings)
__repr__()
connection()
history()

A sequence of of responses, if redirects occurred.

start(connection, read_until_eof=False)

Start response processing.

_response_eof()
closed()
close()
release()
raise_for_status()
_cleanup_writer()
_notify_content()
wait_for_close()
read()

Read response payload.

get_encoding()
text(encoding=None, errors="strict")

Read response payload and decode.

json()

Read and decodes JSON response.

__aenter__()
__aexit__(exc_type, exc_val, exc_tb)