File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ use crate::auth::AuthContext;
1616/// ```
1717/// use axum::http::StatusCode;
1818/// use objectstore_server::auth::AuthAwareService;
19- /// use objectstore_server::error::ApiResult;
2019///
2120/// async fn my_endpoint(service: AuthAwareService) -> Result<StatusCode, StatusCode> {
2221/// service.delete_object(todo!("pass some ID"))
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ pub fn make_http_span(request: &Request) -> tracing::Span {
4141
4242/// A panic handler that logs the panic and turns it into a 500 response.
4343///
44- /// Use with the [`CatchPanicLayer`] middleware.
44+ /// Use with the [`CatchPanicLayer`](tower_http::catch_panic::CatchPanicLayer) middleware.
4545pub fn handle_panic ( err : Box < dyn Any + Send + ' static > ) -> Response {
4646 let detail = if let Some ( s) = err. downcast_ref :: < String > ( ) {
4747 s. clone ( )
Original file line number Diff line number Diff line change 44//! middleware, and the HTTP server. It is a tower service that can be run using any compatible
55//! server framework.
66//!
7- //! To listen to incoming connections, use the [`server`] function, which opens a TCP listener and
7+ //! To listen to incoming connections, use the [`server() `] function, which opens a TCP listener and
88//! serves the application.
99//!
1010//! # Testing
You can’t perform that action at this time.
0 commit comments