Skip to content

discussions Search Results · repo:salvo-rs/salvo language:Rust

113 results  (133 ms)

113 results

insalvo-rs/salvo (press backspace or delete to remove)

@chrislearn I really like the idea of integrating caching, but there are several issues with the current cache management — particularly around header handling and a few other problems. Some of the logic ...

WHat I have in mind is compiling the most basic TLS and WebTransport server implementation to WASM. Though without actually doing the network thing. I just want to proxy bytes to and from the WebTransport ...

#[derive(Debug, Deserialize, Extractible, ToSchema)] pub struct PageRequest T { /// 页码 #[serde(default = default_page )] pub page: u64, /// 每页大小 #[serde(default = default_limit ...

I ve been bashing my head on this for a bit and I just cannot figure out what the correct approach is for offering different catch-all error pages on a per-host basis. I d like (for example) to be able ...

I see realm is hardcoded in line: https://github.com/salvo-rs/salvo/blob/752f7d83fc55ba3aaa1b432c58682dade160abce/crates/extra/src/basic_auth.rs#L93 Is it possible to set custom realm ?

文档示例是: #[handler] fn get_user_from_header(user_id: HeaderParam i64,true ) - String { format!( 从请求头中获取的用户ID: {} , user_id.into_inner()) } 这种只能指定数字或者字符串之类的类型的吗,如果我想要获取请求头里面的authorization,有什么类似springboot中的: ...

As I get HashMap (Key, Value) from the request query strings (or the corresponding structure) without knowing the keys or how many they are. For example given: ?a=foo b=bar c=3.14 my_qs = [(a= foo ), ...

I want to detect client disconnects in Salvo. I need to listen for disconnect to cancel some background spawn tasks. Could you provide some ideas? An example would be even better if possible. Similar ...

Could someone give me a case of use of the Craft feature? https://github.com/salvo-rs/salvo/blob/main/examples/craft/src/main.rs

Is it possible to have conditional middleware prior to executing the main handler, something like request.next?