Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement OptionalFromRequest for Multipart #3220

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcginty
Copy link

@mcginty mcginty commented Feb 12, 2025

This feature existed in axum 0.7, and it makes life much easier for optional multipart bodies!

I refactored the parse_boundary helper function to make it easier to skip on non-multipart content types, and added a test to confirm that an Option<Multipart> behaves as expected.

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