Skip to content

docs: add a parse_multipart_form usage example (#949)#1311

Merged
quinnj merged 1 commit into
masterfrom
jq-multipart-doc
Jun 15, 2026
Merged

docs: add a parse_multipart_form usage example (#949)#1311
quinnj merged 1 commit into
masterfrom
jq-multipart-doc

Conversation

@quinnj

@quinnj quinnj commented Jun 15, 2026

Copy link
Copy Markdown
Member

Supersedes #949 (which targeted the deleted 1.x parsemultipart.jl).

The 2.0 rewrite carried parse_multipart_form forward — and added a convenient parse_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 jldoctest showing boundary-based parsing of a text field plus a file upload, and how to read each part's name/filename/contenttype/data, followed by a short server-handler snippet using the Request overload.

The doctest is verified locally with Documenter.doctest(HTTP) (it's the repo's first jldoctest, so the Documentation CI job will execute it).

🤖 Generated with Claude Code

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

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.16%. Comparing base (b4b0a5e) to head (8a48fec).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@quinnj quinnj merged commit f8e9db6 into master Jun 15, 2026
12 of 14 checks passed
@quinnj quinnj deleted the jq-multipart-doc branch June 15, 2026 21:53
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