Some docs

This commit is contained in:
Manish Goregaokar 2014-08-23 21:35:29 +05:30
parent 5d7438a7db
commit d326ba0377
2 changed files with 40 additions and 34 deletions

View file

@ -111,7 +111,6 @@ impl Request {
}
/// [Basic fetch](http://fetch.spec.whatwg.org#basic-fetch)
///
pub fn basic_fetch(&mut self) -> Response {
match self.url.scheme.as_slice() {
"about" => match self.url.non_relative_scheme_data() {
@ -133,7 +132,8 @@ impl Request {
_ => Response::network_error()
}
}
// [Basic fetch](http://fetch.spec.whatwg.org#http-fetch)
// [HTTP fetch](http://fetch.spec.whatwg.org#http-fetch)
pub fn http_fetch(&mut self, _cors_flag: bool, cors_preflight_flag: bool, _authentication_fetch_flag: bool) -> Response {
let response = Response::new();
// TODO: Service worker fetch