aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/request.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move `*_traits` and other shared types to `shared`Martin Robinson2023-11-031-749/+0
| | | | | | | | | | | | This is the start of the organization of types that are in their own crates in order to break dependency cycles between other crates. The idea here is that putting these packages into their own directory is the first step toward cleaning them up. They have grown organically and it is difficult to explain to new folks where to put new shared types. Many of these crates contain more than traits or don't contain traits at all. Notably, `script_traits` isn't touched because it is vendored from Gecko. Eventually this will move to `third_party`.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-8/+7
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+3
| | | | | | | | | | | * 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>
* constellation: crash to a new “sad tab” error page (#30290)Delan Azabani2023-09-061-0/+12
| | | | | | | | | | | | | | | | | | | | | * constellation: crash to a new “sad tab” page * check in resources/crash.html * use a separate enum variant instead of keying on reason * fmt + tidy * rename Resource::Crash to Resource::CrashHTML * clean up crash page and add details (reason + backtrace) * avoid repeating crash errors in script::script_thread warn log * make new LoadData init more idiomatic * clarify comments and new fields * fix doc comment style
* Auto merge of #29637 - ↵bors-servo2023-05-181-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AnthonyJ3:Use-same-origin-as-default-credential-mode-for-RequestInit-fix, r=mukilan Use same-origin as default credential mode for RequestInit fix <!-- Please describe your changes on the following line: --> - Updated the default credential mode from omit to same-origin as per: https://github.com/whatwg/fetch/pull/1153 - Deleted instances of fallback credentials --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #29633 (GitHub issue number if applicable) - [X] There are tests for these changes
| * fixup! defaulted credentials mode to same-origin & removed fallback credentialsAnthonyJ32023-04-271-1/+1
| |
| * defaulted credentials mode to same-origin & removed fallback credentialsAnthonyJ32023-04-161-1/+1
| | | | | | | | Signed-off-by: AnthonyJ3 <johnsonac.3300@gmail.com>
* | add response tainting to request builderIver Småge men bærbar2023-05-181-1/+9
|/
* Upgrade HyperNaveen Gattu2022-01-161-1/+1
|
* Non-blocking network IONaveen Gattu2021-12-231-5/+7
|
* Set CORS preflight requests' `mode` to `cors`Vincent Ricard2020-10-301-0/+46
|
* Make url for "client" referrer mandatoryMatthias Deiml2020-06-171-13/+14
|
* fix streaming request bodies, terminate fetch if the body stream errorsGregory Terzian2020-06-161-3/+20
|
* Avoid sending a new chunk when the body is already doneCYBAI2020-06-131-5/+2
| | | | | | | | | | | | | | | | As discussed in https://github.com/servo/servo/issues/26807#issuecomment-640151804, we'd like to add a new flag, `in_memory_done`, to `TransmitBodyConnectHandler` so that we can correctly finish and drop the sender correctly. When we send the bytes, we will mark the body as done and we can recognize it's already done in next tick so that we can send a Done request to finish the sender. Also, when there comes a redirect request, it will go to `re-extract` route, we can set the `done` flag to `false` which means we won't stop the IPC routers yet. Then, if the re-extract sent its bytes, we will be marked as done again so that we can finish with stopping the IPC routes when Chunk request comes.
* net: fix re-extracting stream upon re-directGregory Terzian2020-06-121-17/+12
|
* net: Use a POST request for allowing certs temporarily.Josh Matthews2020-06-091-3/+3
|
* partially integrate streaming request bodies with http re-directGregory Terzian2020-06-041-12/+39
|
* integrate readablestream with fetch and blobGregory Terzian2020-06-041-3/+55
|
* check http_state in determine_request_referrerAlexandrov Sergey2020-05-191-1/+17
|
* Now just one is_cors_safelisted_request_header, with closer spec alignmentPatrick Shaughnessy2019-12-161-0/+103
|
* Add simple implementation of content-security-policy on scripts / stylesMichael Howell2019-10-161-31/+15
| | | | | | | | This needs a lot more hooks before it'll actually be a good implementation, but for a start it can help get some feedback on if this is the right way to go about it. Part of servo/servo#4577
* Support CORS attributes for image elements.Josh Matthews2019-10-041-2/+10
|
* Remove unused code from net and net_traits cratesest312019-06-021-18/+0
|
* Introduce parser metadata for requestCYBAI2019-05-111-0/+19
|
* set referrer in window.load_urlRussell Cousineau2019-04-191-9/+5
| | | | | | | | - this conforms to follow-hyperlinks spec step 13 - this conforms to window-open spec step 14.3 - replace uses of `referrer_url` with `referrer` - in Request class, change "no-referrer" to "" - set websocket fetch referrer to "no-referrer"
* Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-41/+138
|
* Remove `foreign` service-workers modeCYBAI2018-12-231-1/+0
|
* refactored performance timing to align with updated specddh2018-11-201-0/+9
| | | | | | | | | | | | 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
|
* Remove duplicate codeYaw Boakye2018-11-181-1/+0
| | | | | `req.pipeline_id` is already set with `init.pipeline_id` during initialization.
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* Rustfmt net_traits cratePyfisch2018-11-031-18/+28
|
* Update hyper to 0.12Bastien Orivel2018-11-011-8/+8
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-9/+9
|
* 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