HTTP routing and request-handling library for Rust that focuses on ergonomics and modularity
413 matches across 2 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | axum-core/src/body.rs | 61 | /// This is useful in cases where a body is required to construct a |
| LOW | axum-core/src/lib.rs | 1 | //! Core types and traits for [`axum`]. |
| LOW | axum-core/src/response/append_headers.rs | 1 | use super::{IntoResponse, IntoResponseParts, Response, ResponseParts, TryIntoHeaderError}; |
| LOW | axum-core/src/response/append_headers.rs | 21 | /// ( |
| LOW | axum-core/src/response/into_response_parts.rs | 1 | use super::{IntoResponse, Response}; |
| LOW | axum-core/src/response/into_response_parts.rs | 21 | /// impl<'a> IntoResponseParts for SetHeader<'a> { |
| LOW | axum-core/src/response/into_response_parts.rs | 41 | /// } |
| LOW | axum-core/src/response/into_response_parts.rs | 61 | /// ( |
| LOW | axum-core/src/response/mod.rs | 21 | }; |
| LOW | axum-core/src/response/mod.rs | 41 | /// // two fallible functions with different error types |
| LOW | axum-core/src/response/mod.rs | 61 | /// |
| LOW | axum-core/src/response/mod.rs | 81 | /// ``` |
| LOW | axum-core/src/response/mod.rs | 141 | /// |
| LOW | axum-core/src/response/mod.rs | 181 | |
| LOW | axum-core/src/response/into_response.rs | 21 | /// # Implementing `IntoResponse` |
| LOW | axum-core/src/response/into_response.rs | 41 | /// } |
| LOW | axum-core/src/response/into_response.rs | 61 | /// # let _: Router = app; |
| LOW | axum-core/src/response/into_response.rs | 81 | /// pin::Pin, |
| LOW | axum-core/src/response/into_response.rs | 101 | /// // Now we can implement `IntoResponse` directly for `MyBody` |
| LOW | axum-core/src/extract/default_body_limit.rs | 1 | use self::private::DefaultBodyLimitService; |
| LOW | axum-core/src/extract/default_body_limit.rs | 21 | /// [`RequestExt::with_limited_body`] or [`RequestExt::into_limited_body`] |
| LOW | axum-core/src/extract/default_body_limit.rs | 41 | /// ``` |
| LOW | axum-core/src/extract/default_body_limit.rs | 61 | /// // this route has a different limit |
| LOW | axum-core/src/extract/default_body_limit.rs | 81 | |
| LOW | axum-core/src/extract/default_body_limit.rs | 101 | /// Router, |
| LOW | axum-core/src/extract/default_body_limit.rs | 121 | kind: DefaultBodyLimitKind::Disable, |
| LOW | axum-core/src/extract/default_body_limit.rs | 141 | /// let app: Router<()> = Router::new() |
| LOW | axum-core/src/extract/default_body_limit.rs | 161 | /// # Example |
| LOW | axum-core/src/extract/rejection.rs | 41 | #[status = PAYLOAD_TOO_LARGE] |
| LOW | axum-core/src/extract/mod.rs | 41 | /// Extractors that implement `FromRequestParts` cannot consume the request body and can thus be |
| LOW | axum-core/src/extract/mod.rs | 61 | state: &S, |
| LOW | axum-core/src/extract/from_ref.rs | 1 | /// Used to do reference-to-value conversions thus not consuming the input value. |
| LOW | axum-core/src/ext_traits/request.rs | 21 | /// ``` |
| LOW | axum-core/src/ext_traits/request.rs | 41 | /// async fn from_request(req: Request, _state: &S) -> Result<Self, Self::Rejection> { |
| LOW | axum-core/src/ext_traits/request.rs | 61 | /// Ok(Self(payload)) |
| LOW | axum-core/src/ext_traits/request.rs | 81 | /// |
| LOW | axum-core/src/ext_traits/request.rs | 101 | /// let requires_state = req.extract_with_state::<RequiresState, _, _>(state).await?; |
| LOW | axum-core/src/ext_traits/request.rs | 121 | /// ``` |
| LOW | axum-core/src/ext_traits/request.rs | 141 | /// Json, RequestExt, |
| LOW | axum-core/src/ext_traits/request.rs | 161 | /// |
| LOW | axum-core/src/ext_traits/request.rs | 181 | |
| LOW | axum-core/src/ext_traits/request.rs | 201 | /// |
| LOW | axum-core/src/ext_traits/request.rs | 221 | /// |
| LOW | axum-core/src/ext_traits/request_parts.rs | 21 | /// response::{Response, IntoResponse}, |
| LOW | axum-core/src/ext_traits/request_parts.rs | 41 | /// .await |
| LOW | axum-core/src/ext_traits/request_parts.rs | 61 | /// This is just a convenience for `E::from_request_parts(parts, state)`. |
| LOW | axum-core/src/ext_traits/request_parts.rs | 81 | /// { |
| LOW | axum/src/service_ext.rs | 1 | use crate::error_handling::HandleError; |
| LOW | axum/src/service_ext.rs | 21 | /// associated `ConnectInfo` in a request extension such that [`ConnectInfo`] |
| LOW | axum/src/lib.rs | 1 | //! axum is an HTTP routing and request-handling library that focuses on ergonomics and modularity. |
| LOW | axum/src/lib.rs | 21 | //! transport layer independence is not a goal, at least for the time being. |
| LOW | axum/src/lib.rs | 41 | //! } |
| LOW | axum/src/lib.rs | 61 | //! async fn root() {} |
| LOW | axum/src/lib.rs | 81 | //! ```rust |
| LOW | axum/src/lib.rs | 101 | //! Anything that implements [`IntoResponse`] can be returned from handlers. |
| LOW | axum/src/lib.rs | 121 | //! } |
| LOW | axum/src/lib.rs | 141 | //! |
| LOW | axum/src/lib.rs | 161 | //! use axum::{ |
| LOW | axum/src/lib.rs | 181 | //! // ... |
| LOW | axum/src/lib.rs | 201 | //! struct AppState { |
| 352 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/workflows/release-plz.yml | 38 | # Create a PR with the new versions and changelog, preparing the next release. |