add streaming body to requests and responses #3
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ impl<M: Message + 'static> EndpointHandler<M> for () {
|
|||
|
||||
// ----
|
||||
|
||||
/// This trait should be implemented by an object of your application
|
||||
/// that can handle a message of type `M`, in the cases where it doesn't
|
||||
/// care about attached stream in the request nor in the response.
|
||||
#[async_trait]
|
||||
pub trait EndpointHandler<M>: Send + Sync
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue