mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
implementing working demonstration of calling Fetch asynchronously
This commit is contained in:
parent
872ee19534
commit
3f79667050
5 changed files with 264 additions and 169 deletions
|
@ -111,7 +111,7 @@ pub enum CORSSettings {
|
|||
pub struct Request {
|
||||
pub method: RefCell<Method>,
|
||||
pub local_urls_only: bool,
|
||||
pub sanboxed_storage_area_urls: bool,
|
||||
pub sandboxed_storage_area_urls: bool,
|
||||
pub headers: RefCell<Headers>,
|
||||
pub unsafe_request: bool,
|
||||
pub body: RefCell<Option<Vec<u8>>>,
|
||||
|
@ -155,7 +155,7 @@ impl Request {
|
|||
Request {
|
||||
method: RefCell::new(Method::Get),
|
||||
local_urls_only: false,
|
||||
sanboxed_storage_area_urls: false,
|
||||
sandboxed_storage_area_urls: false,
|
||||
headers: RefCell::new(Headers::new()),
|
||||
unsafe_request: false,
|
||||
body: RefCell::new(None),
|
||||
|
@ -193,7 +193,7 @@ impl Request {
|
|||
Request {
|
||||
method: RefCell::new(Method::Get),
|
||||
local_urls_only: false,
|
||||
sanboxed_storage_area_urls: false,
|
||||
sandboxed_storage_area_urls: false,
|
||||
headers: RefCell::new(Headers::new()),
|
||||
unsafe_request: false,
|
||||
body: RefCell::new(None),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue