less restrictive send() signature
This commit is contained in:
@@ -166,9 +166,7 @@ impl Request {
|
|||||||
/// .set("Content-Type", "text/plain")
|
/// .set("Content-Type", "text/plain")
|
||||||
/// .send(read);
|
/// .send(read);
|
||||||
/// ```
|
/// ```
|
||||||
pub fn send<R>(&mut self, reader: R) -> Response
|
pub fn send(&mut self, reader: impl Read + 'static) -> Response
|
||||||
where
|
|
||||||
R: Read + Send + 'static,
|
|
||||||
{
|
{
|
||||||
self.do_call(Payload::Reader(Box::new(reader)))
|
self.do_call(Payload::Reader(Box::new(reader)))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user