Make Request constructor public for wasm environments (#1173)
Closes #1171
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user