references/pages-functions/api.md
Pages Functions APIs
Fetch the API reference before writing a handler; keep runtime types and examples in their authoritative documentation.
| Task | Documentation | | --- | --- | | Choose method handlers and access EventContext | API reference | | Read parameters and resolve dynamic routes | Routing | | Compose middleware and continue a request | Middleware | | Use a supported resource binding | Bindings | | Handle requests through generated Worker output | Advanced mode |
Decide which handler owns the response, where shared state is established, and which paths should fall through to assets. The API reference also covers asynchronous work and asset fetching. See configuration.md for binding setup and patterns.md for request design.