mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Some docs
This commit is contained in:
parent
5d7438a7db
commit
d326ba0377
2 changed files with 40 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue