mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-27 04:50:31 +00:00
Lowercase axum in a few more places
This commit is contained in:
parent
f2fc88a1fe
commit
0cb686535a
@ -196,7 +196,7 @@ however, will stay intact on the Pull Request page.
|
|||||||
|
|
||||||
## Reviewing Pull Requests
|
## Reviewing Pull Requests
|
||||||
|
|
||||||
**Any Tokio, Hyperium, and Tower, Axum community member is welcome to review any pull request**.
|
**Any Tokio, Hyperium, and Tower, axum community member is welcome to review any pull request**.
|
||||||
|
|
||||||
All contributors who choose to review and provide feedback on Pull Requests have
|
All contributors who choose to review and provide feedback on Pull Requests have
|
||||||
a responsibility to both the project and the individual making the contribution.
|
a responsibility to both the project and the individual making the contribution.
|
||||||
@ -242,7 +242,7 @@ Specific performance optimization techniques, coding styles and conventions
|
|||||||
change over time. The first impression you give to a new contributor never does.
|
change over time. The first impression you give to a new contributor never does.
|
||||||
|
|
||||||
Nits (requests for small changes that are not essential) are fine, but try to
|
Nits (requests for small changes that are not essential) are fine, but try to
|
||||||
avoid stalling the Pull Request. Most nits can typically be fixed by the Axum
|
avoid stalling the Pull Request. Most nits can typically be fixed by the axum
|
||||||
Collaborator landing the Pull Request but they can also be an opportunity for
|
Collaborator landing the Pull Request but they can also be an opportunity for
|
||||||
the contributor to learn a bit more about the project.
|
the contributor to learn a bit more about the project.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Copyright 2021 Axum Contributors
|
Copyright 2021 axum Contributors
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Copyright 2021 Axum Contributors
|
Copyright 2021 axum Contributors
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Copyright 2021 Axum Contributors
|
Copyright 2021 axum Contributors
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2019 Axum Contributors
|
Copyright (c) 2019 axum Contributors
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any
|
Permission is hereby granted, free of charge, to any
|
||||||
person obtaining a copy of this software and associated
|
person obtaining a copy of this software and associated
|
||||||
|
@ -259,7 +259,7 @@ If you choose to implement a custom error type such as `type Error = BoxError` (
|
|||||||
```ignore
|
```ignore
|
||||||
ServiceBuilder::new()
|
ServiceBuilder::new()
|
||||||
.layer(HandleErrorLayer::new(|_: BoxError| async {
|
.layer(HandleErrorLayer::new(|_: BoxError| async {
|
||||||
// because Axum uses infallible errors, you must handle your custom error type from your middleware here
|
// because axum uses infallible errors, you must handle your custom error type from your middleware here
|
||||||
StatusCode::BAD_REQUEST
|
StatusCode::BAD_REQUEST
|
||||||
}))
|
}))
|
||||||
.layer(
|
.layer(
|
||||||
|
@ -1080,9 +1080,9 @@ async fn middleware_adding_body() {
|
|||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.route("/", get(()))
|
.route("/", get(()))
|
||||||
.layer(MapResponseLayer::new(|mut res: Response| -> Response {
|
.layer(MapResponseLayer::new(|mut res: Response| -> Response {
|
||||||
// If there is a content-length header, its value will be zero and Axum will avoid
|
// If there is a content-length header, its value will be zero and axum will avoid
|
||||||
// overwriting it. But this means our content-length doesn’t match the length of the
|
// overwriting it. But this means our content-length doesn’t match the length of the
|
||||||
// body, which leads to panics in Hyper. Thus we have to ensure that Axum doesn’t add
|
// body, which leads to panics in Hyper. Thus we have to ensure that axum doesn’t add
|
||||||
// on content-length headers until after middleware has been run.
|
// on content-length headers until after middleware has been run.
|
||||||
assert!(!res.headers().contains_key("content-length"));
|
assert!(!res.headers().contains_key("content-length"));
|
||||||
*res.body_mut() = "…".into();
|
*res.body_mut() = "…".into();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user