Skip to content

cast_uvicorn_params

faststream.asgi.app.cast_uvicorn_params #

cast_uvicorn_params(params)
Source code in faststream/asgi/app.py
def cast_uvicorn_params(params: Dict[str, Any]) -> Dict[str, Any]:
    if port := params.get("port"):
        params["port"] = int(port)
    if fd := params.get("fd"):
        params["fd"] = int(fd)
    return params