Make Request constructor public for wasm environments (#1173)

Closes #1171
This commit is contained in:
Rakshith Ravi
2021-02-13 21:49:11 +05:30
committed by GitHub
parent 2940740493
commit 727903f69a

View File

@@ -27,7 +27,9 @@ pub struct RequestBuilder {
}
impl Request {
pub(super) fn new(method: Method, url: Url) -> Self {
/// Constructs a new request.
#[inline]
pub fn new(method: Method, url: Url) -> Self {
Request {
method,
url,