aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/net/fetch/request.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/net/fetch/request.rs')
-rw-r--r--src/components/net/fetch/request.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/net/fetch/request.rs b/src/components/net/fetch/request.rs
index 4c5e2d55cdf..069c30541ea 100644
--- a/src/components/net/fetch/request.rs
+++ b/src/components/net/fetch/request.rs
@@ -53,8 +53,7 @@ pub enum ResponseTainting {
Opaque // Opaque
}
-/// A Request as defined by the [Fetch spec](http://fetch.spec.whatwg.org/#requests)
-///
+/// A [Request](http://fetch.spec.whatwg.org/#requests) as defined by the Fetch spec
pub struct Request {
pub method: Method,
pub url: Url,
@@ -82,7 +81,7 @@ pub struct Request {
}
impl Request {
- fn new(url: Url, context: Context) -> Request {
+ pub fn new(url: Url, context: Context) -> Request {
Request {
method: Get,
url: url,