Introduce build method on WASM RequestBuilder for compatibility with async_impl (#1019)

This commit is contained in:
Jason van den Hurk
2020-08-28 19:12:58 +02:00
committed by GitHub
parent 7ef8e94250
commit 53268f2443

View File

@@ -250,6 +250,12 @@ impl RequestBuilder {
self
}
/// Build a `Request`, which can be inspected, modified and executed with
/// `Client::execute()`.
pub fn build(self) -> crate::Result<Request> {
self.request
}
/// Constructs the Request and sends it to the target URL, returning a
/// future Response.
///