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.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 allowself
as a field name.
- 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 allowself
as a field name.