Module client

Module client 

Source
Expand description

HTTP client operations with DPoP authentication support.

Authenticated and unauthenticated HTTP requests for JSON APIs with DPoP (Demonstration of Proof-of-Possession) support.

Structs§

AppPasswordAuth
App password authentication credentials for authenticated HTTP requests.
DPoPAuth
DPoP authentication credentials for authenticated HTTP requests.

Enums§

Auth
Authentication method for AT Protocol XRPC requests.

Functions§

get_apppassword_bytes_with_headers
Performs an app password-authenticated HTTP GET request and returns the response as bytes.
get_apppassword_json
Performs an app password-authenticated HTTP GET request and parses the response as JSON.
get_apppassword_json_with_headers
Performs an app password-authenticated HTTP GET request with additional headers and parses the response as JSON.
get_bytes
Performs an unauthenticated HTTP GET request and returns the response as bytes.
get_bytes_with_headers
Performs an unauthenticated HTTP GET request with additional headers and returns the response as bytes.
get_dpop_json
Performs a DPoP-authenticated HTTP GET request and parses the response as JSON.
get_dpop_json_with_headers
Performs a DPoP-authenticated HTTP GET request with additional headers and parses the response as JSON.
get_json
Performs an unauthenticated HTTP GET request and parses the response as JSON.
get_json_with_headers
Performs an unauthenticated HTTP GET request with additional headers and parses the response as JSON.
post_apppassword_bytes_with_headers
Performs an app password-authenticated HTTP POST request with JSON body and returns the response as bytes.
post_apppassword_json
Performs an app password-authenticated HTTP POST request with JSON body and parses the response as JSON.
post_apppassword_json_with_headers
Performs an app password-authenticated HTTP POST request with JSON body and additional headers, and parses the response as JSON.
post_dpop_json
Performs a DPoP-authenticated HTTP POST request with JSON body and parses the response as JSON.
post_dpop_json_with_headers
Performs a DPoP-authenticated HTTP POST request with JSON body and additional headers, and parses the response as JSON.
post_json
Performs an unauthenticated HTTP POST request with JSON body and parses the response as JSON.
post_json_with_headers
Performs an unauthenticated HTTP POST request with JSON body and additional headers, and parses the response as JSON.