mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
implement http redirect fetch, and various Fetch Standard updates
This commit is contained in:
parent
f1018b84a8
commit
cf607606e0
3 changed files with 248 additions and 131 deletions
|
@ -93,7 +93,7 @@ pub struct Request {
|
|||
pub url_list: RefCell<Vec<Url>>,
|
||||
pub headers: RefCell<Headers>,
|
||||
pub unsafe_request: bool,
|
||||
pub body: Option<Vec<u8>>,
|
||||
pub body: RefCell<Option<Vec<u8>>>,
|
||||
pub preserve_content_codings: bool,
|
||||
// pub client: GlobalRef, // XXXManishearth copy over only the relevant fields of the global scope,
|
||||
// not the entire scope to avoid the libscript dependency
|
||||
|
@ -101,7 +101,7 @@ pub struct Request {
|
|||
pub skip_service_worker: Cell<bool>,
|
||||
pub context: Context,
|
||||
pub context_frame_type: ContextFrameType,
|
||||
pub origin: Origin,
|
||||
pub origin: RefCell<Origin>,
|
||||
pub force_origin_header: bool,
|
||||
pub omit_origin_header: bool,
|
||||
pub same_origin_data: Cell<bool>,
|
||||
|
@ -129,13 +129,13 @@ impl Request {
|
|||
url_list: RefCell::new(vec![url]),
|
||||
headers: RefCell::new(Headers::new()),
|
||||
unsafe_request: false,
|
||||
body: None,
|
||||
body: RefCell::new(None),
|
||||
preserve_content_codings: false,
|
||||
is_service_worker_global_scope: is_service_worker_global_scope,
|
||||
skip_service_worker: Cell::new(false),
|
||||
context: context,
|
||||
context_frame_type: ContextFrameType::ContextNone,
|
||||
origin: origin,
|
||||
origin: RefCell::new(origin),
|
||||
force_origin_header: false,
|
||||
omit_origin_header: false,
|
||||
same_origin_data: Cell::new(false),
|
||||
|
@ -166,13 +166,13 @@ impl Request {
|
|||
url_list: RefCell::new(vec![url]),
|
||||
headers: RefCell::new(Headers::new()),
|
||||
unsafe_request: false,
|
||||
body: None,
|
||||
body: RefCell::new(None),
|
||||
preserve_content_codings: false,
|
||||
is_service_worker_global_scope: is_service_worker_global_scope,
|
||||
skip_service_worker: Cell::new(false),
|
||||
context: context,
|
||||
context_frame_type: ContextFrameType::ContextNone,
|
||||
origin: origin,
|
||||
origin: RefCell::new(origin),
|
||||
force_origin_header: false,
|
||||
same_origin_data: Cell::new(false),
|
||||
omit_origin_header: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue