diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-07-30 23:28:49 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-07-30 23:28:49 +0530 |
commit | e678943939ba3cff5ff0c7f3555d948f3d220454 (patch) | |
tree | fd95f8ae17bab52c0f72c972063fc81a12415ab0 /src/components/net/fetch/request.rs | |
parent | 56e735ee7931096b8c63b3d064d5eb0fcf409665 (diff) | |
download | servo-e678943939ba3cff5ff0c7f3555d948f3d220454.tar.gz servo-e678943939ba3cff5ff0c7f3555d948f3d220454.zip |
Definition of Response and related enums/concepts
Diffstat (limited to 'src/components/net/fetch/request.rs')
-rw-r--r-- | src/components/net/fetch/request.rs | 5 |
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, |