aiq.registry_handlers.schemas.headers#
Attributes#
Classes#
Represents a data model for REST registry handler request headers. |
|
Placehoder data model for REST registry handler resopnse headers. |
Module Contents#
- logger#
- class RequestHeaders(/, **data: Any)#
Bases:
pydantic.BaseModelRepresents 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.selfis explicitly positional-only to allowselfas a field name.
- class ResponseHeaders(/, **data: Any)#
Bases:
pydantic.BaseModelPlacehoder 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.selfis explicitly positional-only to allowselfas a field name.