xbox.webapi.common.signed_session module

Signed Session A wrapper around httpx’ AsyncClient which transparently calculates the “Signature” header.

class xbox.webapi.common.signed_session.SignedSession(request_signer=None)[source]

Bases: AsyncClient

classmethod from_pem_signing_key(pem_string)[source]
Parameters:

pem_string (str) –

async send_request_signed(request)[source]

Shorthand for prepare signed + send

Parameters:

request (Request) –

Return type:

Response

async send_signed(method, url, **kwargs)[source]

Shorthand for creating request + prepare signed + send

Parameters:
  • method (str) –

  • url (str) –