web_server
functiongworker_client.endpoints.web_server
Expose a raw HTTP server bound to port inside the container. The task function starts the server process; gworker proxies public traffic to that port. startup_timeout_s is the grace period before the platform marks the task unhealthy.
Signature
python
1web_server(port: int, requires_auth: bool = True, startup_timeout_s: float = 5.0) -> Callable[[_F], _F]