Repository navigation
docs: add Client Retry page and make the upload recipe safe - #12
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs/Client-Retry.md: RetryPolicy, Backoff, RetryAfter, SleeperInterface/Sleeper, verified againstsrc/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 astoreUpload()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-Afteris used as-is (not capped bymaxDelay).Check:
bash repos/.github/scripts/wiki-sync.sh --check repos/HTTP/docsexits 0.