mirror of
https://github.com/servo/servo.git
synced 2025-10-15 16:00:28 +01:00
Async XHR GET with basic response header support
This commit is contained in:
parent
90a0bcfa78
commit
533fab46f9
8 changed files with 253 additions and 51 deletions
|
@ -92,6 +92,7 @@ fn load(mut url: Url, start_chan: Sender<LoadResponse>) {
|
|||
|
||||
let mut metadata = Metadata::default(url);
|
||||
metadata.set_content_type(&response.headers.content_type);
|
||||
metadata.headers = Some(*response.headers.clone());
|
||||
|
||||
let progress_chan = start_sending(start_chan, metadata);
|
||||
loop {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue