aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-15/+15
|
* Merge some byte swap/premultiply functions in their own crateAnthony Ramine2018-10-061-0/+1
|
* delegate resource reading to embedderPaul Rouget2018-04-271-1/+1
|
* Remove insaccessible history statesConnor Brewster2018-04-171-0/+2
|
* Implement history stateConnor Brewster2018-04-161-0/+5
|
* Measure cache memory usage (#19251):modal-d172018-04-011-0/+1
| | | | | | | | | | | | | 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.
* Remove cancellation map and ResourceId from the net* componentsBastien Orivel2017-11-211-6/+0
| | | | Fixes #19327
* Fetch cancellation: Add cancel_chan to FetchContextManish Goregaokar2017-11-171-4/+4
|
* Merge functionality of WebsocketConnect into FetchKeith Yeung2017-10-241-15/+12
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-20/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-5/+5
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* Remove usage of unstable box syntax, except in the script crateSimon Sapin2017-10-121-2/+1
| | | | | … because there’s a lot of it, and script still uses any other unstable features anyway.
* Remove usage of unstable feature iterator_step_bySimon Sapin2017-10-111-1/+0
|
* order derivable traits listsClément DAVID2017-08-231-12/+12
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Add location_url to Metadata structKeith Yeung2017-08-181-0/+4
|
* Make network error messages more specificKeith Yeung2017-07-241-4/+2
|
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-1/+1
|
* Remove explicit dependencies on serde_deriveSimon Sapin2017-06-161-9/+4
|
* Bump serde to 1.0Bastien Orivel2017-06-161-1/+1
|
* Update Rust nightly to 1.19.0-nightly (2416e222e 2017-06-09)Anthony Ramine2017-06-091-1/+1
|
* Revert "Update Rust nightly to 1.19.0-nightly (6165203c4 2017-06-03)"Anthony Ramine2017-06-031-1/+1
| | | | This reverts commit f081380dc03dba9664877df2829097f32c40694a.
* Update Rust nightly to 1.19.0-nightly (6165203c4 2017-06-03)Anthony Ramine2017-06-031-1/+1
|
* Redirect document loads manuallyNikhil Shagrithaya2017-05-311-1/+7
|
* Stop using unstable slice_patterns featureMatt Brubeck2017-05-011-1/+0
|
* Move hosts module into net crate. Remove obsolete functions.Josh Matthews2017-04-061-2/+0
|
* Update Hyper and OpenSSLddh2017-03-311-63/+7
|
* Make the WebSocket handshake ourselves to ease switching libsAnthony Ramine2017-03-291-1/+1
| | | | | | We need to switch to tungstenite to finally update openssl, this commit rewrites the whole websocket infrastructure to properly follow the Fetch spec and to make switching to a different websocket library easier.
* Introduce NetworkError::from_hyper_error and from_ssl_errorAnthony Ramine2017-03-291-2/+69
|
* Move image cache implementation to the net crateFernando Jiménez Moreno2017-03-271-1/+0
|
* Make image cache per-document rather than globalFernando Jiménez Moreno2017-03-271-1/+2
|
* Remove useless dependency on websocket from net_traitsAnthony Ramine2017-03-241-2/+0
|
* Only pass the protocol in use in to establish a WS connectionAnthony Ramine2017-03-241-8/+3
|
* Properly follow the spec in WebSocket::ConstructorAnthony Ramine2017-03-241-2/+1
|
* Replace manual host parsing code with parse-host crateFernando Jiménez Moreno2017-03-091-0/+1
|
* Send response for image requests progressively to image cache.Josh Matthews2017-02-221-2/+2
|
* Update serde to 0.9 (fixes #15325)Anthony Ramine2017-02-181-2/+2
|
* Update ipc-channel to 0.6.3Anthony Ramine2017-02-161-2/+2
|
* Simplify handling of the referrer policy header in ScriptThread::load().Ms2ger2017-01-261-1/+24
|
* Update rustc to 1.16.0-nightly (7821a9b99 2017-01-23).Ms2ger2017-01-241-1/+0
|
* Auto merge of #14868 - bd339:iss14068, r=jdmbors-servo2017-01-091-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix loss of response type information in Fetch API <!-- Please describe your changes on the following line: --> Avoids mapping response types that are distinct according to [the spec](https://fetch.spec.whatwg.org/#concept-response-type) to fewer response types. Also updates test expectations to match that we now pass tests that check the response type. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14068 <!-- Either: --> - [X] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14868) <!-- Reviewable:end -->
| * Don't lose information in Fetch APIbd3392017-01-091-1/+3
| | | | | | | | Also update test expectations.
* | Upgrade to rustc 1.16.0-nightly (6f1ae663e 2017-01-06)Simon Sapin2017-01-061-1/+0
|/
* Rustfmt net_traits.Ms2ger2017-01-031-26/+30
|
* Reformat WebSocketNetworkEvent::ConnectionEstablished and ↵Ms2ger2017-01-031-13/+9
| | | | CoreResourceMsg::SetCookieForUrl.
* Reformat fetch_async().Ms2ger2017-01-031-3/+2
|
* Remove unused ConstellationMsg from net_traits.Ms2ger2016-12-261-7/+0
|
* net: Simplify content_type setter.Emilio Cobos Álvarez2016-12-251-16/+9
|
* Separate the async bluetooth handling from networking code.Ms2ger2016-12-211-9/+0
| | | | | | | | | They're not at all related, besides both being asynchronous. This change adds a little extra code in response_async(), but makes this code more readable and reduces the unnecessary indirection. This change also makes the build system slightly more parallel, by dropping the dependency on bluetooth_traits from net_traits.
* Refactor and simplify 'set cookies' operations on resource thread.Corey Farwell2016-12-151-4/+4
|
* Removed util.Alan Jeffrey2016-12-141-1/+1
|