HTTPX

class lanyard.http.httpx.HTTPX(base_url, raise_for_status=True, timeout=None)[source]

The base abstract class for all HTTP-related classes.

Parameters:
  • base_url (str) – Base URL of HTTP response (example: https://api.lanyard.rest/).

  • raise_for_status (bool) – Raise HTTP status code of HTTP response (example: True).

  • timeout (float | None) – Timeout for HTTP requests (example: None).

property session: AsyncClient