aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/response.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-4/+8
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+2
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Fix some Clippy lints.Teymour Aldridge2022-08-041-1/+1
|
* Fix warnings introduced in newer Rust NightlySimon Sapin2021-02-251-1/+1
| | | | | | | | | | | | This does not (yet) upgrade ./rust-toolchain The warnings: * dead_code "field is never read" * redundant_semicolons "unnecessary trailing semicolon" * non_fmt_panic "panic message is not a string literal, this is no longer accepted in Rust 2021" * unstable_name_collisions "a method with this name may be added to the standard library in the future" * legacy_derive_helpers "derive helper attribute is used before it is introduced" https://github.com/rust-lang/rust/issues/79202
* Implement cross origin resource policy checkBastien Orivel2020-05-081-1/+1
| | | | | I removed the window getter usage from those tests as servo does not support that yet.
* Properly set the url on the Response object when the response is an ↵Bastien Orivel2020-05-061-1/+1
| | | | opaqueredirect
* Fix the redirected attribute for ResponseBastien Orivel2020-05-051-0/+1
|
* Handle access-control header wildcardsPatrick Shaughnessy2020-02-141-5/+3
|
* Move ResourceFetchTiming into ArcJaved Nissar2019-09-181-5/+8
| | | | | | | | | | | The purpose of this commit is to ensure that the Response object has access to Timing updates as previously the Response object simply stored a ResourceFetchTiming struct so updates on ResourceFetchTiming that were not explicitly done on the Response would not be passed down. The references to ServoArc are added because Response uses servo_arc::Arc rather than std::sync::Arc as is used elsewhere. So, we've switched those other places to servo_arc::Arc instead of switching Response to std::sync::Arc.
* Upgrade headers, headers-core, and hyper_serde.Josh Matthews2019-06-131-2/+1
|
* Remove unused code from net and net_traits cratesest312019-06-021-6/+0
|
* Change Response's statusText default value from 'Ok' to an empty stringGeorge Roman2018-11-271-2/+2
|
* refactored performance timing to align with updated specddh2018-11-201-3/+12
| | | | | | | | | | | | refactoring with ResourceFetchMetadata implemented deprecated window.timing functionality created ResourceTimingListener trait fixed w3c links in navigation timing updated include.ini to run resource timing tests on ci
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* Rustfmt net_traits cratePyfisch2018-11-031-15/+24
|
* Update hyper to 0.12Bastien Orivel2018-11-011-26/+22
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-1/+1
|
* Thread the status through navigation redirectsMichael Howell2018-10-131-0/+2
| | | | | | | | | This is necessary because status codes affect whether the redirect is done with the same HTTP method or a different one. This is part of #21886, but there's also a flaw in how iframes are handled that is causing the redirect to take over the entire window, so this commit doesn't entirely fix slither.io.
* Measure cache memory usage (#19251):modal-d172018-04-011-1/+2
| | | | | | | | | | | | | Made the memory cache data structure derive MallocSizeOf, along with manual size_of() implementations in malloc_size_of. Added a Measurable struct that acts as a container for fields size_of() can be called for. Added a new IpcReceiver used for listening to messages from the memory profiler, and used run_with_memory reporting to register a memory reporter in the thread. Now when a message from the memory profiler arrives, report includes sizes of public and private http caches. Updated test file.
* ignore aborted response in http cachingGregory Terzian2018-01-131-3/+5
|
* Add aborted flag to response, set when fetch is abortedManish Goregaokar2017-11-201-0/+4
|
* Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)Simon Sapin2017-11-091-1/+0
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* order derivable traits listsClément DAVID2017-08-231-7/+7
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Add location_url to Metadata structKeith Yeung2017-08-181-0/+3
|
* Update HTTP fetchKeith Yeung2017-08-081-0/+4
|
* Update main fetchKeith Yeung2017-08-081-1/+5
|
* Redirect document loads manuallyNikhil Shagrithaya2017-05-311-1/+22
|
* Make Response::url_list be a bare Vec<ServoUrl>Anthony Ramine2017-04-031-5/+12
|
* Make Response::internal_response a bare booleanAnthony Ramine2017-04-031-6/+6
|
* Don't lose information in Fetch APIbd3392017-01-091-8/+23
| | | | Also update test expectations.
* Rustfmt net_traits.Ms2ger2017-01-031-17/+20
|
* Skip rustfmt on to_filtered.Ms2ger2017-01-031-0/+1
| | | | https://github.com/rust-lang-nursery/rustfmt/issues/1262
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-7/+7
|
* Auto merge of #14156 - frewsxcv:cors-capitalization, r=KiChjangbors-servo2016-11-101-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update CORS naming from 'CORS' to 'Cors'. As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14156) <!-- Reviewable:end -->
| * Update CORS naming from 'CORS' to 'Cors'.Corey Farwell2016-11-091-2/+2
| | | | | | | | | | | | | | | | As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps.
* | Make Response::url private.Ms2ger2016-11-101-1/+5
| |
* | Pass the URL to Response::new().Ms2ger2016-11-101-2/+2
|/
* Implement Debug for Response.Ms2ger2016-11-081-3/+3
|
* Store the referrer in the Response and return it in Response::metadata().Ms2ger2016-11-021-0/+4
|
* Store the NetworkError in network error Responses.Ms2ger2016-11-021-13/+22
|
* Add FetchMetadata and update corresponding methodsKeith Yeung2016-09-211-15/+33
|
* Reorder `use` statementsUK9922016-09-091-1/+1
|
* dom::Response implementationMalisa Smith2016-09-061-9/+11
|
* Update serde to 0.8 (fixes #12659)Anthony Ramine2016-08-121-2/+3
|
* Review fixesManish Goregaokar2016-06-111-1/+5
|
* Test fixes; update for changes in specManish Goregaokar2016-06-101-1/+1
|
* Net side of XHR fetch integrationManish Goregaokar2016-06-101-4/+26
|