Skip to content

Commit 0608b0e

Browse files
committed
export http_types::Body from tide::
1 parent e2fae3b commit 0608b0e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

backup/examples/staticfile.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use http::{
55
header::{self, HeaderMap},
66
StatusCode,
77
};
8-
use http_service::Body;
9-
use tide::{Request, Response, Result, Server};
8+
use tide::{Body, Request, Response, Result, Server};
109

1110
use std::path::{Component, Path, PathBuf};
1211
use std::{fs, io};

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ pub use request::Request;
204204
pub mod sse;
205205

206206
#[doc(inline)]
207-
pub use http_types::{Error, Result, Status, StatusCode};
207+
pub use http_types::{Body, Error, Result, Status, StatusCode};
208208

209209
#[doc(inline)]
210210
pub use middleware::{Middleware, Next};

src/server/serve_dir.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
use crate::log;
2+
use crate::{Body, Endpoint, Request, Response, Result, StatusCode};
3+
14
use async_std::fs::File;
25
use async_std::io::BufReader;
3-
use http_types::{Body, StatusCode};
4-
5-
use crate::log;
6-
use crate::{Endpoint, Request, Response, Result};
76

87
use std::path::{Path, PathBuf};
98

0 commit comments

Comments
 (0)