Skip to content

Conversation

mcginty
Copy link
Contributor

@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.

@mcginty mcginty force-pushed the optional-multipart branch from f6e4fef to 19bac73 Compare March 4, 2025 12:43
@fritzchr
Copy link
Contributor

fritzchr commented May 8, 2025

Thanks for this work! Do you know if there’s a timeline for merging this into master? I’m eager to upgrade to v0.8, but the lack of Option<Multipart> support would unfortunately block my use case. Any update would be greatly appreciated!

@mcginty
Copy link
Contributor Author

mcginty commented May 8, 2025

@fritzchr I'm not sure, I never got a response to this PR, dunno why.

Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, sorry for the long delay! I'm not super experienced with this and was hoping somebody else would review it, but I've now taken the time to review it and it looks good 👍🏼

@jplatte
Copy link
Member

jplatte commented May 8, 2025

Actually, could you add a changelog entry please?

I think you may have to rebase to not cause merge conflicts w.r.t. that... If you're not familiar with that let me know and I'll do the changelog entry separately.

@fritzchr
Copy link
Contributor

@mcginty Do you plan to rebase anytime soon? If not you can let me know and I will rebase and do the changelog entry.

@jplatte jplatte merged commit 9ef53e5 into tokio-rs:main May 28, 2025
18 checks passed
@jplatte
Copy link
Member

jplatte commented May 28, 2025

Let's just do the changelog entry separately. Can you send a PR?

@fritzchr
Copy link
Contributor

I'll do it today in the evening @jplatte

@fritzchr
Copy link
Contributor

#3364

jplatte pushed a commit that referenced this pull request Sep 28, 2025
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.

3 participants