ibex.endpoints.data.CustomORJSONResponse¶
-
class ibex.endpoints.data.CustomORJSONResponse(content: Any, status_code: int =
200, headers: Mapping[str, str] | None =None, media_type: str | None =None, background: BackgroundTask | None =None)¶ Bases:
ORJSONResponseCustom ORJSON serializer. Uses serializer from data_source to transform arbitrary types (e.g. IDSNumericArray) to ones supported by ORJSON serializer (e.g. np.array).
Methods
delete_cookie(key[, path, domain, secure, ...])init_headers([headers])render(content)set_cookie(key[, value, max_age, expires, ...])Attributes
charsetheadersmedia_type