Skip to content

docs: add Client Retry page and make the upload recipe safe - #12

Merged
muhammetsafak merged 3 commits into
mainfrom
docs/retry-and-upload-recipe
Nov 23, 2026
Merged

muhammetsafak merged 3 commits into
mainfrom
docs/retry-and-upload-recipe

Conversation

@muhammetsafak

Copy link
Copy Markdown
Contributor
  • New docs/Client-Retry.md: RetryPolicy, Backoff, RetryAfter, SleeperInterface/Sleeper, verified against src/Client. Linked from Client Configuration (existing Retries section kept, no contradiction), PSR-18 Client, API Reference and the sidebar.
  • docs/Recipe-File-Upload.md: the example moved uploads to the client-supplied file name. It now uses a storeUpload() helper with a random server-side name, an extension from an allow-list keyed by the content-detected type, and a short explanation; the nested-inputs example uses the same helper.

The retry page notes that the policy ignores the HTTP method and that Retry-After is used as-is (not capped by maxDelay).

Check: bash repos/.github/scripts/wiki-sync.sh --check repos/HTTP/docs exits 0.

Document RetryPolicy, Backoff, RetryAfter and SleeperInterface/Sleeper,
verified against src/Client. Link it from Client Configuration, the PSR-18
Client page, the API Reference and the sidebar.
The recipe moved uploads to the client-supplied file name. Replace it with
a storeUpload() helper that generates a random name, takes the extension
from an allow-list keyed by the content-detected media type, and explains
why.
…e the API reference

Inspect the same bytes that moveTo() stores, reject streams that cannot be
rewound, keep the stored name in the nested example, narrow the traversal
wording, and list the sleeper and jitter methods in the API reference.
@muhammetsafak
muhammetsafak merged commit 0f1209c into main Nov 23, 2026
7 checks passed
@muhammetsafak
muhammetsafak deleted the docs/retry-and-upload-recipe branch November 23, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant