aiq.registry_handlers.schemas.headers#

Attributes#

Classes#

RequestHeaders

Represents a data model for REST registry handler request headers.

ResponseHeaders

Placehoder data model for REST registry handler resopnse headers.

Module Contents#

logger#
class RequestHeaders(/, **data: Any)#

Bases: pydantic.BaseModel

Represents a data model for REST registry handler request headers.

Args:

accept (str): Specifies the media types the client can accept. Defaults to ‘application/json’ content_type (str): Describes the format of the request body data. Defaults to ‘application/json’ authorization (str): Contains authentication credentials for accessing a protected resource.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

accept: str = None#
content_type: str = None#
authorization: str = None#
class ResponseHeaders(/, **data: Any)#

Bases: pydantic.BaseModel

Placehoder data model for REST registry handler resopnse headers.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.