docs: add a parse_multipart_form usage example (#949)#1311
Merged
Conversation
The 2.0 rewrite carried parse_multipart_form forward (with a new Request overload) but its docstring had no example. Add a runnable jldoctest showing boundary-based parsing of a field + a file upload and accessing each part's name/filename/contenttype/data, plus a short server-handler snippet using the Request overload. Supersedes the stale 1.x-targeting PR #949. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1311 +/- ##
==========================================
- Coverage 87.31% 87.16% -0.16%
==========================================
Files 29 29
Lines 11289 11289
==========================================
- Hits 9857 9840 -17
- Misses 1432 1449 +17 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Supersedes #949 (which targeted the deleted 1.x
parsemultipart.jl).The 2.0 rewrite carried
parse_multipart_formforward — and added a convenientparse_multipart_form(request)overload — but the docstring shipped without a usage example, which was the still-valid intent behind the stale PR #949.This adds a runnable
jldoctestshowing boundary-based parsing of a text field plus a file upload, and how to read each part'sname/filename/contenttype/data, followed by a short server-handler snippet using theRequestoverload.The doctest is verified locally with
Documenter.doctest(HTTP)(it's the repo's firstjldoctest, so the Documentation CI job will execute it).🤖 Generated with Claude Code