ray.serve.schema.HTTPOptionsSchema#
- class ray.serve.schema.HTTPOptionsSchema(*, host: str = '0.0.0.0', port: int = 8000, root_path: str = '', request_timeout_s: float = None, keep_alive_timeout_s: int = 5)[source]#
Bases:
BaseModel
Options to start the HTTP Proxy with.
- NOTE: This config allows extra parameters to make it forward-compatible (ie
older versions of Serve are able to accept configs from a newer versions, simply ignoring new parameters).
Methods
Create a new model by parsing and validating input data from keyword arguments.
Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.
Duplicate a model, optionally choose which fields to include, exclude and change.
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
Generate a JSON representation of the model,
include
andexclude
arguments as perdict()
.Try to update ForwardRefs on fields based on this Model, globalns and localns.
Attributes