Skip to content

response

tipg.resources.response

tipg custom responses.

GeoJSONResponse

Bases: ORJSONResponse

GeoJSON Response

ORJSONResponse

Bases: JSONResponse

Custom response handler for using orjson

render

render(content: Any) -> bytes

Render the content into a JSON response using orjson

SchemaJSONResponse

Bases: ORJSONResponse

Schema Response

default

default(obj)

Instruct orjson what to do with types it does not natively serialize

orjsonDumps

orjsonDumps(content: Any)

Small wrapper function to run the orjson.dumps with the additional options we want