Introduce build method on WASM RequestBuilder for compatibility with async_impl (#1019)
This commit is contained in:
committed by
GitHub
parent
7ef8e94250
commit
53268f2443
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user