HTTP Client

class atproto_client.request.AsyncRequest

Bases: RequestBase

Class for handling requests errors and working with httpx.

async close() None
async get(*args: Any, **kwargs: Any) Response
async post(*args: Any, **kwargs: Any) Response
class atproto_client.request.Request

Bases: RequestBase

Class for handling requests errors and working with httpx.

close() None
get(*args: Any, **kwargs: Any) Response
post(*args: Any, **kwargs: Any) Response
class atproto_client.request.RequestBase

Bases: object

get_headers(additional_headers: Dict[str, str] | None = None) Dict[str, str]
set_additional_headers(headers: Dict[str, str]) None
class atproto_client.request.Response(success: bool, status_code: int, content: Union[Dict[str, Any], bytes, ForwardRef('XrpcError'), NoneType], headers: Dict[str, Any])

Bases: object

content: Dict[str, Any] | bytes | XrpcError | None
headers: Dict[str, Any]
status_code: int
success: bool