• Joined on 2024年05月27日
silmeth commented on pull request mo8it/axum-ctx#1 2024年05月28日 14:08:34 +02:00
allow custom error response

Two more thoughts:

as I mentioned on the Fediverse, could be better to do separate fn response(mut self, impl IntoResponse) and fn lazy_response(mut self, FnOnce() -> impl IntoResponse),

#...

silmeth commented on pull request mo8it/axum-ctx#1 2024年05月28日 00:12:11 +02:00
allow custom error response

Oups, that’s not true – it accepts either Response directly (as in the example) or FnOnce() -> impl IntoResponse (so `.response(

silmeth created pull request mo8it/axum-ctx#1 2024年05月27日 22:39:37 +02:00
allow custom error response
silmeth pushed to custom-response at silmeth/axum-ctx 2024年05月27日 22:35:45 +02:00
42392efcfd allow custom error response
silmeth pushed to custom-response at silmeth/axum-ctx 2024年05月27日 22:32:16 +02:00
6d2fcf7640 allow custom error response
silmeth created branch custom-response in silmeth/axum-ctx 2024年05月27日 22:32:16 +02:00
silmeth created repository silmeth/axum-ctx 2024年05月27日 21:09:42 +02:00