Added FrozenSendBuilder

This commit is contained in:
Dmitry Pypin 2019-09-06 15:47:55 -07:00
parent 522880fb65
commit 34e7376efd
1 changed files with 5 additions and 7 deletions

View File

@ -711,14 +711,12 @@ impl FrozenSendBuilder {
where where
B: Into<Body>, B: Into<Body>,
{ {
// if let Some(e) = self.err { if let Some(e) = self.err {
// return Either::A(err(e.into())) return Either::A(err(e.into()))
// } }
// Either::B(RequestSender::Rc(self.req.head, Some(self.extra_headers)) Either::B(RequestSender::Rc(self.req.head, Some(self.extra_headers))
// .send_body(self.req.addr, self.req.response_decompress, self.req.timeout, self.req.config.as_ref(), body)) .send_body(self.req.addr, self.req.response_decompress, self.req.timeout, self.req.config.as_ref(), body))
RequestSender::Rc(self.req.head, Some(self.extra_headers))
.send_body(self.req.addr, self.req.response_decompress, self.req.timeout, self.req.config.as_ref(), body)
} }
/// Complete request construction and send a json body. /// Complete request construction and send a json body.