mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-26 02:11:56 +00:00
publish boxbody type
This commit is contained in:
@@ -38,7 +38,7 @@ pub fn json_http_response<T: Serialize>(t: &T) -> Response<Bytes> {
|
|||||||
.unwrap_or_else(|_| fallback_rpc_error_response())
|
.unwrap_or_else(|_| fallback_rpc_error_response())
|
||||||
}
|
}
|
||||||
|
|
||||||
type BoxBody = http_body_util::combinators::BoxBody<Bytes, hyper::Error>;
|
pub type BoxBody = http_body_util::combinators::BoxBody<Bytes, hyper::Error>;
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
pub trait Middleware<Context: Send + 'static>: Clone + Send + Sync + 'static {
|
pub trait Middleware<Context: Send + 'static>: Clone + Send + Sync + 'static {
|
||||||
|
|||||||
Reference in New Issue
Block a user