ray.serve.config.HTTPOptions.json#
- HTTPOptions.json(*, include: AbstractSetIntStr | MappingIntStrAny | None = None, exclude: AbstractSetIntStr | MappingIntStrAny | None = None, by_alias: bool = False, skip_defaults: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, encoder: Callable[[Any], Any] | None = None, models_as_dict: bool = True, **dumps_kwargs: Any) str#
生成模型的 JSON 表示,
include和exclude参数按照dict()的方式处理。encoder是一个可选的函数,作为default参数提供给 json.dumps(),其他参数与json.dumps()相同。