Export Body and RequestBuilder for client wrappers

This commit is contained in:
Anthony Nowell
2016-10-29 22:40:36 -06:00
parent 5479d9e8b8
commit 7109126e40
2 changed files with 4 additions and 1 deletions

View File

@@ -1,10 +1,12 @@
use std::io::Read;
/// Body type for a request.
pub struct Body {
reader: Kind,
}
impl Body {
/// Instantiate a `Body` from a reader.
pub fn new<R: Read + 'static>(reader: R) -> Body {
Body {
reader: Kind::Reader(Box::new(reader), None),