aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/request.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge functionality of WebsocketConnect into FetchKeith Yeung2017-10-241-2/+2
|
* Merge request type and destinationKeith Yeung2017-10-231-23/+18
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-30/+30
| | | | | | | | 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.
* order derivable traits listsClément DAVID2017-08-231-14/+14
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Update HTTP-redirect fetchKeith Yeung2017-08-181-1/+1
|
* Change RequestInit origin type to ImmutableOriginFausto Núñez Alberro2017-07-161-5/+3
|
* Introduce service-worker modeKeith Yeung2017-06-221-6/+14
|
* Redirect document loads manuallyNikhil Shagrithaya2017-05-311-2/+11
|
* Kill Request::omit_origin_headerAnthony Ramine2017-04-071-2/+0
|
* Introduce HstsList::switch_known_hsts_host_domain_url_to_httpsAnthony Ramine2017-04-051-0/+5
|
* Add spec links to the Request fieldsAnthony Ramine2017-04-051-1/+29
|
* Remove all internal mutability from RequestAnthony Ramine2017-04-031-46/+45
|
* Add ImmutableOrigin to allow for serializing originsConnor Brewster2017-02-221-4/+3
|
* Auto merge of #14895 - dowoncha:request-websocket, r=jdmbors-servo2017-01-081-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Websocket to RequestMode enum Added Websocket to RequestMode enum --- <!-- 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 #14785 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because matching the enum should have default control flow. <!-- 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/14895) <!-- Reviewable:end -->
| * Added Websocket to RequestMode enumDowon Cha2017-01-081-0/+1
| | | | | | | | | | | | set unreachable in dom/request.rs for websocket fixed imports
* | Implement Subresource Integritymrnayak2017-01-081-0/+3
|/ | | | | | | | | | | Implemented response validation part of https://w3c.github.io/webappsec-subresource-integrity/. Implemented step eighteen of the main fetch. If a request has integrity metadata, then following steps are performed *Wait for response body *If the response does not have a termination reason and response does not match request’s integrity metadata, set response to a network error.# Please enter the commit message for your changes. Lines starting
* Rustfmt net_traits.Ms2ger2017-01-031-25/+42
|
* Remove Request::done.Ms2ger2016-12-091-2/+0
| | | | It does not appear to be used at all.
* Rewrite determine_request_referrer() to explicitly limit it to the checks it ↵Ms2ger2016-12-081-16/+0
| | | | | | | | can do. Checks for the Client value should reside in the script thread. I also noted some other issues in this code.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-14/+15
|
* Implement the constructor for EventSourceKeith Yeung2016-11-111-2/+7
|
* Auto merge of #14156 - frewsxcv:cors-capitalization, r=KiChjangbors-servo2016-11-101-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-6/+6
| | | | | | | | | | | | | | | | As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps.
* | Set redirect_mode in Request::from_init()Raphael Nestler2016-11-081-0/+1
| |
* | Add redirect_mode to RequestInitRaphael Nestler2016-11-081-1/+3
|/
* Move ReferrerPolicy to net_traits.Ms2ger2016-11-041-1/+2
|
* Remove unused trait method.Corey Farwell2016-10-101-4/+0
|
* Remove GlobalRoot and GlobalRefAnthony Ramine2016-10-061-2/+0
|
* Remove same-origin-data-url flag from fetch implementationJan Zerebecki2016-10-011-5/+0
| | | | | | | The spec removed it. Check the scheme instead, data is always same origin now, except for workers. This also updates the comments to make step numbers match the spec. Closes #13362
* Implement default values for RequestInitKeith Yeung2016-09-211-52/+29
|
* Fix most typoes for: "referer" -> "referrer"Nicolas2016-09-161-19/+19
|
* Auto merge of #12700 - jeenalee:jeena-requestAPI, r=jdmbors-servo2016-08-121-12/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the Request API <!-- Please describe your changes on the following line: --> This PR implements the [Request API](https://fetch.spec.whatwg.org/#request-class) for the Fetch API, including its attributes and constructor, and introduces changes in relevant files. This Request integrates `net_traits::request::Request` and `dom::headers`. There are few related TODOs and comments: 1. `net_traits::request::Request`'s `headers` field does not point to `dom::request::Request`'s `headers_reflector`. 2. Every Constructor step that involves `Readable Stream` object is not implemented. 3. Every Constructor step that involves `entry settings object` or `environment settings object` is not implemented. 4. `./mach build -d` does not report any error, but prints a few warnings about unused variables related to (1) and (2). 5. Enum `ReferrerPolicy` generated by `RequestBinding` does not match `net_traits::request::Request`'s implementation. 6. `Promise`s in Body webidl are commented out. --- <!-- 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 #11895 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because tests for the Request API already exists, but this commit does not implement the interface fully. <!-- 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/12700) <!-- Reviewable:end -->
| * Implement the Request API for the Fetch API.Jeena Lee2016-08-121-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds new files related to implementing the [Request API](https://fetch.spec.whatwg.org/#request-class). This commit also changes the expected web platform tests results. It also modifies the following files: components/net_traits/request.rs HeapSizeOf is implemented in net_traits/request so that dom::request can be used as a wrapper around net_traits::request::Request. components/script/dom/headers.rs Several methods are added to Headers so that request can access and modify some of the headers fields.
* | Update serde to 0.8 (fixes #12659)Anthony Ramine2016-08-121-0/+4
|/
* Added devtools support to fetch for XHR + Manish's XHR ident fixddh2016-07-291-4/+11
| | | | | | added unit test for request fetch with devtools added devtools/fetch test
* Review fixesManish Goregaokar2016-06-111-3/+4
|
* Test fixes; update for changes in specManish Goregaokar2016-06-101-1/+39
|
* Test fixes:Manish Goregaokar2016-06-101-3/+3
| | | | | | | | - Hack to stop hitting unreachable on referer - add fetch_done to make sync work - Make datauris work by setting the response URI, spec bug - Allow for empty bodies - Make request bodies work (pass to http, fix fencepost in iter count)
* Use RequestInit instead of LoadData. Make code look like the spec.Manish Goregaokar2016-06-101-3/+40
|
* Net side of XHR fetch integrationManish Goregaokar2016-06-101-0/+1
|
* Revamp Fetch async handling to use a fetch target and done channelsManish Goregaokar2016-06-101-1/+1
|
* Fix logic for cors cache matchDaniel Robertson2016-04-271-1/+1
| | | | | | The current logic for a cors cache match does not consider "credentials is false and request's credentials mode is not "include" or credentials is true."
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-1/+1
|
* Address PR commentsStjepan Glavina2016-03-241-4/+0
| | | | | | - Remove fn `url_is_local` - Remove fn `set_local_urls_only` - Fix `test_fetch_with_local_urls_only`
* Correctly handle flag local_urls_onlyStjepan Glavina2016-03-231-1/+5
| | | | | | In function Request::fetch_main, flag local_urls_only (if set) should allow fetching local urls only. Before this change, the flag had the inverse behaviour.
* implementing working demonstration of calling Fetch asynchronouslyNikki2016-03-011-3/+3
|
* Update fetch attributes to match the new specKeith Yeung2016-02-271-54/+105
|
* implement http redirect fetch, and various Fetch Standard updatesNikki2016-02-171-6/+6
|
* Implement "potential CORS request"Keith Yeung2016-02-031-1/+56
|