Skip to main content

Exports

wreq-js exports the following functions and classes:

Quick reference

TypeScript support

wreq-js includes TypeScript definitions for its public API:

Fetch style surface

wreq-js provides a fetch like API surface with additional transport and profile options: Session, Transport, and WebSocket are exported classes, but you should create them via createSession(), createTransport(), and websocket() or new WebSocket(url, ...). Detailed compatibility notes live at /concepts/compatibility-matrix.

wreq-js extensions

Additional options beyond the standard Fetch API: