API Reference
This reference documents the public surface currently implemented in src/Fetch. For a conceptual introduction, start with the guide.
Functions
fetch(),fetch_client()- HTTP helpers:
get,post,put,patch,delete - Streaming helpers:
fetch_stream,fetch_sse(see streams and events)
Classes and contracts
ClientandClientHandlerRequestandResponse- Streams and SSE, middleware and events, exceptions
- Testing utilities
Enums
Return types of convenience methods depend on whether asynchronous mode is enabled. PSR-18 Client::sendRequest() remains synchronous.