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

Remove B type param: axum-core #1772

Merged

Conversation

davidpdrsn
Copy link
Member

This is the next step in removing the B type param as outlined in #1751. This PR updates axum-core.

The changes are entirely mechanical. Stop using Request<B> and use Request<axum_core::body::Body> instead.

I think a type Request<B = axum_core::body::Body> = http::Request<B> alias would also be nice, similarly to what we have for Response. I'll probably add that when #1751 is merged.

@davidpdrsn davidpdrsn requested a review from jplatte February 20, 2023 20:15
axum-core/src/extract/default_body_limit.rs Outdated Show resolved Hide resolved
/// # async {
/// # hyper::Server::bind(&"".parse().unwrap()).serve(app.into_make_service()).await.unwrap();
/// # };
/// # let _: Router = app;
Copy link
Member

Choose a reason for hiding this comment

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

I guess that answers my question 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Hehe yes. I ran a quick search and replace to catch at least some of them.

@davidpdrsn davidpdrsn merged commit a95da74 into remove-generic-b-type-prep Feb 20, 2023
@davidpdrsn davidpdrsn deleted the remove-generic-b-type-axum-core branch February 20, 2023 20:44
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.

2 participants