serve_wsgi_request
serve_wsgi_request(req: http_req.Request, body: InputStream, app: Callable, handle_errors: bool = False) -> NoneServe a single WSGI request using the Fastly Compute API.
This function adapts between Fastly's WIT-based HTTP API and the WSGI specification, allowing any WSGI-compatible web framework to run on Fastly Compute.
Parameters
- req: http_req.Request
Fastly HTTP request object from WIT bindings
- body: InputStream
WSGI input stream containing the request body (PEP 3333 compliant)
- app: Callable
WSGI application callable
- handle_errors: booloptional =
False If True, log exceptions and return 500; otherwise let the server or WSGI app handle them
Returns
None