* feat: `:arg` syntax for serverfn * add better decode/encode verify message * allow catch-all query args * add rebind * implement websocket frames for `Streaming` * fix lazy init * wip... serverfnstate * wip... * wip: serverfns require Send/Sync, let's fix that * wip... * small cleanup * fix hang by actually spawning the tokio task * clippy * fix parameter catchall binding * fix lychee * doc tests
13 lines
288 B
Rust
13 lines
288 B
Rust
use super::*;
|
|
|
|
pub use axum::extract::Form;
|
|
|
|
impl<T> IntoRequest for Form<T>
|
|
where
|
|
T: Serialize + 'static + DeserializeOwned,
|
|
{
|
|
fn into_request(self, req: ClientRequest) -> impl Future<Output = ClientResult> + 'static {
|
|
async move { req.send_form(&self.0).await }
|
|
}
|
|
}
|