web_endpoint
functiongworker_client.endpoints.web_endpoint
Expose the task as a REST endpoint at path. The task receives the parsed request body and must return a JSON-serialisable value. Combine with requires_auth=False for public webhooks. custom_domains attaches your own domain.
Signature
python
1web_endpoint(method: str = 'POST', path: str = '/', requires_auth: bool = True, custom_domains: tuple[str, ...] = ()) -> Callable[[_F], _F]