aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/request.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
|
* Partial implementation of Main Fetch step, including appropiate updates to testsNikki2016-01-291-12/+16
|
* Rename net/fetch/request.rs to net/fetch/methods.rs and move Request to ↵Keith Yeung2016-01-181-0/+150
net_traits