Skip to content

Find an example by task ​

Use the Go guide for Go interfaces. The detailed feature guides primarily show Python and explain Node equivalents where applicable.

Requests, JSON, and files ​

Complete Go request · Go request options · Python sync/async and files · Node Promise and files. See request and response options for encoding details. Check language-specific exclusivity rules for JSON, forms, and raw bodies.

Reuse a Session after login rather than creating one for every request. A cookie jar does not implement application authentication or CSRF handling. See cookies and headers, pooling, and HTTP/HTTPS/SOCKS proxies. Configure proxy and target CA trust separately.

Transfers, concurrency, and cancellation ​

Stream large downloads to disk to avoid buffered response limits. Upload producers must handle cancellation and leave owned files correctly closed. See streaming and timeouts, uploads, and H2 duplex. Custom Node Promise producers should accept an AbortSignal; arbitrary I/O cannot be forcibly interrupted by the language.

SSE and WebSocket ​

SSE covers parsing, last-event-id, and retry; the application decides whether to reconnect. WebSocket covers limits, close codes, one reader/one writer, and independent timeout phases. example.com/events and /chat are placeholders, not runnable protocol services.

Apache-2.0 · Third-party materials retain their licenses