aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/request.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Untry scriptSimon Sapin2017-06-181-9/+9
|
* Update the WebIDL parserAnthony Ramine2017-06-091-4/+4
|
* Kill Request::omit_origin_headerAnthony Ramine2017-04-071-4/+1
|
* Remove all internal mutability from RequestAnthony Ramine2017-04-031-44/+36
|
* Auto merge of #15715 - nox:custom-derive, r=SimonSapinbors-servo2017-02-241-0/+1
|\ | | | | | | | | | | | | | | | | | | | | Make #[dom_struct] a proc_macro attribute The rustup is needed for https://github.com/rust-lang/rust/pull/40039. <!-- 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/15715) <!-- Reviewable:end -->
| * Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
| |
* | Make Request throw less often (fixes #13457)Mathieu Hordesseaux2017-02-231-11/+6
|/
* Use RootedTraceableBox for dictionaries.Ms2ger2017-02-161-2/+3
|
* Use Heap for dictionary and union members.Ms2ger2017-02-161-3/+3
|
* Added Websocket to RequestMode enumDowon Cha2017-01-081-0/+1
| | | | | | set unreachable in dom/request.rs for websocket fixed imports
* Use the API base URL in Fetch APIs.Ms2ger2016-12-191-2/+1
|
* Remove HeapGCValueAnthony Ramine2016-12-121-2/+2
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-5/+5
|
* 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.
* | Auto merge of #13802 - jeenalee:request-headers, r=jdmbors-servo2016-11-091-11/+32
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow Request's Headers to be created with various objects <!-- Please describe your changes on the following line: --> While Headers could be constructed correctly with an array or object (open ended dictionary/MozMap), Request's Headers failed to be created with non-Headers object (such as array or open ended dictionary/MozMap). Before, Request's Headers could be filled with only a Headers object in Step 28. This has been expanded to accommodate array and open ended dictionary. Step 29 empties the Request's Headers list after it had been filled in Step 28, thus resulting in an empty Headers object when it shouldn't be. This step has been removed with a comment in this commit. If a RequestInit Headers is _not_ given, but a RequestInfo Headers is given, RequestInfo Headers should be used to construct Request Headers. That step has been added after Step 31. Corresponding wpt result is updated in this commit. --- <!-- 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 #13758 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/13802) <!-- Reviewable:end -->
| * Fill r's headers with headers_copy when HeadersInit::Headers is givenJeena Lee2016-11-071-1/+2
| | | | | | | | | | | | | | Instead of filling request's headers whenever a `HeadersInit` is given, this patch fills request's headers only when `HeadersInit` with a type of `Headers` is given. Previously, the constructor tried to fill request's headers with itself, causing Servo to crash.
| * Remove unused use statementJeena Lee2016-10-271-1/+0
| |
| * Address review commentsJeena Lee2016-10-271-15/+20
| |
| * Allow Request's Headers to be created with various objectsJeena Lee2016-10-171-11/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While Headers could be constructed correctly with an array or object (open ended dictionary/MozMap), Request's Headers failed to be created with non-Headers object (such as array or open ended dictionary/MozMap). Before, Request's Headers could be filled with only a Headers object in Step 28. This has been expanded to accommodate array and open ended dictionary. Step 29 empties the Request's Headers list after it had been filled in Step 28, thus resulting in an empty Headers object when it shouldn't be. This step has been removed with a comment in this commit. If a RequestInit Headers is *not* given, but a RequestInfo Headers is given, RequestInfo Headers should be used to construct Request Headers. That step has been added after Step 31. Corresponding wpt result is updated in this commit.
* | Code review comments and upstream merge conflictsRaghav2016-11-041-1/+1
|\ \ | | | | | | | | | | | | | | | Incorporated code review comments in components/net/http_loader.rs Resolved merge conflicts in cargo.lock file. Updated ReferrerPolicy in lib.rs
| * | Move ReferrerPolicy to net_traits.Ms2ger2016-11-041-1/+1
| | |
* | | Network Security : Implement StrictOrigin and StrictOriginWhenCrossOriginRaghav2016-11-041-0/+6
|/ / | | | | | | | | | | Referer policy strict-origin and strict-origin-when-cross-origin changes have been implemented. Relevant unit test cases have been added. Enum for RefererPolicy has been added to hyper codebase and v 0.9.11 of hyper contains these changes. This commit also contains changes related to upgrade of hyper from v0.9.10 to v0.9.11. Other dependencies changed are rayon, utils, num_cpus.
* / Fix Request's Headers to be cloned correctlyJeena Lee2016-10-121-3/+4
|/ | | | | | Previously, when `Clone()` was called, Headers of the template Request did not get cloned properly. This commit fixes that issue, and updates the expected wpt results.
* Cleanup logic, remove unnecessary allocations in Request API.Corey Farwell2016-10-101-26/+12
|
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-3/+3
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-8/+5
|
* Make Request::new take a &GlobalScopeAnthony Ramine2016-10-061-13/+15
|
* Introduce GlobalScope::get_urlAnthony Ramine2016-10-061-4/+5
|
* Introduce Reflectable::global_scopeAnthony Ramine2016-10-061-2/+2
|
* Introduce GlobalScope::pipeline_idAnthony Ramine2016-10-061-1/+1
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-8/+4
|
* Provide the fetched data to fetch() consumers.Ms2ger2016-10-061-10/+12
|
* Revert "Make DOMRefCell use style’s copy of RefCell"Simon Sapin2016-10-041-2/+1
| | | | This reverts commit ec723057b2360446790d436fe5e234d798fb4175.
* Rename hyper import and update as HttpMethodTom Huibregtse2016-10-011-15/+15
|
* Remove same-origin-data-url flag from fetch implementationJan Zerebecki2016-10-011-1/+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 the Fetch methodJeena Lee2016-09-291-0/+4
|
* impl Body mixin for dom::Response and dom::RequestMalisa Smith2016-09-281-2/+79
|
* Enable OpenEndedDictionary in HeadersJeena Lee2016-09-221-9/+11
| | | | Expected wpt results are updated as well.
* Fix most typoes for: "referer" -> "referrer"Nicolas2016-09-161-10/+10
|
* Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-1/+1
| | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* Reorder `use` statementsUK9922016-09-091-4/+4
|
* Auto merge of #12851 - jeenalee:request, r=noxbors-servo2016-08-131-15/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix step 31 of the Request constructor. <!-- Please describe your changes on the following line: --> This PR fixes the step 31 of the Request constructor to fill Request's Headers object and rethrow any exceptions. Additionally, it removes unnecessary line breaks, comments, and redundant function. --- <!-- 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 #12845 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because this PR does not change the behavior of the Request constructor. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> In addition to fixing step 31 of the Request constructor, this commit also: - remove `get_current_url` function, and use `net_request::request`'s built-in `current_url` method - clean up unnecessary line breaks and comments <!-- 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/12851) <!-- Reviewable:end -->
| * Fix step 31 of the Request constructor.Jeena Lee2016-08-131-15/+3
| | | | | | | | | | | | | | | | In addition to fixing step 31 of the Request constructor, this commit also: - remove get_current_url function, and use net_request::request's built-in current_url method - clean up unnecessary line breaks and comments
* | Update Rust to 1.12.0-nightly (1deb02ea6 2016-08-12)Anthony Ramine2016-08-131-2/+2
|/
* Implement the Request API for the Fetch API.Jeena Lee2016-08-121-0/+820
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.