Add constructor to Sse (#244)

I think this is more consistent with the rest of the API
This commit is contained in:
David Pedersen
2021-08-23 17:51:30 +02:00
committed by GitHub
parent a753eac23f
commit 6777dc1e5c
3 changed files with 22 additions and 26 deletions
+1 -5
View File
@@ -21,11 +21,7 @@ pub mod sse;
pub use crate::Json;
#[doc(inline)]
pub use self::{
headers::Headers,
redirect::Redirect,
sse::{sse, Sse},
};
pub use self::{headers::Headers, redirect::Redirect, sse::Sse};
/// Trait for generating responses.
///