Skip to content

yggdrasil.http_.authorization.base

base

Abstract base class for HTTP authorization providers.

Authorization

Bases: ABC

Contract for objects that produce an HTTP Authorization header value.

Concrete subclasses own credential storage, refresh logic, and any token cache. Callers only need :attr:authorization — the fully-formed header value (e.g. "Bearer <token>") ready to drop into :class:yggdrasil.io.headers.Headers or :class:PreparedRequest.authorization.

authorization abstractmethod property

authorization: str

Return the value for the HTTP Authorization header.