Alex Gaynor
2d662aa4e7
Always disable SSLv2 and SSLv3.
...
These protocols have serious known weakness and our turned off in other browsers.
2015-11-21 12:11:48 -05:00
Alex Gaynor
008d99663f
Fixed #8594 -- use a more modern default cipher suite list by default
2015-11-20 11:40:07 -05:00
Ravi Shankar
afb9b0707b
Testing cancellation during redirects
2015-11-14 10:04:32 +05:30
Josh Matthews
5e123df7a7
Make SSL cert verification errors work again. Add a horrible, no-good, very bad regression test.
2015-11-13 11:30:38 -05:00
Ravi Shankar
10f5584f78
Implement cancellation listener for cancelling network requests
2015-11-12 14:02:59 +05:30
Abhishek Kumar
b7de946205
Check in for task 1,4 and 5
...
Adding pipelineID to httpresponse message, clearner code for task1
Commit for Refactored task
Unit tests
Removing extra whitespaces.
Removing extra whitespaces.
Removing tabs whitespaces
Making Code tidier.
Style issues Fix
Test-tidy Fixes
2015-11-05 00:17:24 -05:00
Nova Fallen
00528f1f1f
Refactor code dealing with headers of requests and responses into separate functions to enable use by websocket code
2015-11-03 11:17:53 -05:00
nxnfufunezn
468eaac096
Accept Brotli-compressed HTTP responses #8156
2015-11-01 08:59:18 +05:30
Eli Friedman
10664cf3f4
Refactor resource loaders to use send_error utility.
...
No substantial functional change.
2015-10-13 16:37:12 -07:00
David Raifaizen
43a0651761
Removed user agent parameter from being unnecessarily passed
2015-10-13 18:17:26 -04:00
Corey Farwell
20beaf5af3
Fix issues found by rust-clippy
2015-10-12 20:21:49 -04:00
bors-servo
ac1b595609
Auto merge of #7976 - frewsxcv:clippy, r=jdm
...
Cleanup code that was warned by rust-clippy
[whitespace agnostic diff](https://github.com/servo/servo/pull/7976/files?w=1 )
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7976 )
<!-- Reviewable:end -->
2015-10-12 04:37:42 -06:00
Rahul Sharma
4b363d2a0e
convert match to if let for location header check #7969
2015-10-12 10:27:20 +05:30
Corey Farwell
81e034885b
Cleanup code that was warned by rust-clippy
2015-10-11 20:47:45 -04:00
Gökberk Yaltıraklı
5eeca1f037
Use typed header API instead of set_raw in set_default_accept_encoding
2015-10-11 11:00:03 +03:00
Prabhjyot Singh Sodhi
920bb5e4b8
tests for devtools integration with network requests/responses
2015-09-25 22:07:01 +05:30
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Maciej Skrzypkowski
88815d21ba
Add plugins for compositing and net crates #7699
...
Changed to_string calls to to_owned calls
where was a need.
2015-09-22 13:51:21 +02:00
Sam Gibson
6d20b388f6
General cleanup for HSTS/Cookie Arc
2015-09-19 18:30:38 +12:00
Sam Gibson
6f573d5d44
Move HSTS/CookieStorage to Arc<RwLock> from Ipc
...
servo/servo#7421
2015-09-19 18:30:37 +12:00
bors-servo
e107f112d8
Auto merge of #7633 - aidanhs:aphs-remove-sslprovider, r=jdm
...
Remove SslProvider, fixes #7627
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7633 )
<!-- Reviewable:end -->
2015-09-14 14:57:55 -06:00
Aidan Hobson Sayers
7632e89a04
Remove unsupported SslProvider, fixes #7627
2015-09-14 21:30:05 +01:00
João Oliveira
813cdaa012
Move setting UserAgent header into http_loader::load,
...
closes #7541
2015-09-14 15:35:34 +01:00
Eli Friedman
94dec69247
Fix up some unnecessary uses of unsafe
.
2015-09-02 15:50:17 -07:00
Sean McArthur
a1a9db8ffd
net: use connection pooling
2015-09-02 12:46:53 -04:00
Prabhjyot Singh Sodhi
afcda46cbe
Removing unnecessary url clones
2015-09-01 13:44:54 +05:30
Prabhjyot Singh Sodhi
849ee8fbdf
removing unnecessary clones
2015-09-01 08:38:42 +05:30
Sam Gibson
43e0c4ac89
Prevents unwrapping invalid location url domains
2015-08-31 13:47:35 +12:00
Sam Gibson
9d0f418ee0
Resolves merge conflict without wonky cloning
2015-08-31 08:54:12 +12:00
Sam Gibson
4b6f07cbe6
Resolves strange borrow/type checking issues from new thread naming
2015-08-30 12:23:50 +10:00
Sam Gibson
f257b5fcef
Adds content-length to empty-bodied non-GET/HEAD requests
2015-08-30 12:14:15 +10:00
Sam Gibson
667b563f2e
Renames LoadResponse
2015-08-30 12:14:13 +10:00
Sam Gibson
a1fd235347
Moves devtools request msg logic to where the request is sent
2015-08-30 12:14:12 +10:00
Sam Gibson
3b8bada5a1
Fixes code review nits
2015-08-30 12:14:12 +10:00
Sam Gibson
04c012dfbf
Binds name instead of inlining value for readability
2015-08-30 12:14:11 +10:00
Sam Gibson
918f8a7760
Removes unnecessary clone
2015-08-30 12:14:11 +10:00
Sam Gibson
d8acb893de
Inverts conditional and returns
2015-08-30 12:14:11 +10:00
Sam Gibson
1811ffa178
Uses and_then
instead of more complicated matching
2015-08-30 12:14:10 +10:00
Sam Gibson
84ae53e011
Indents arguments to be more readable
2015-08-30 12:14:10 +10:00
Sam Gibson
6de61301f4
Removes inline'ing
2015-08-30 12:14:09 +10:00
Sam Gibson
94284fc47f
Fixes new tidy problems
2015-08-30 12:14:09 +10:00
Sam Gibson
d53af0d9ed
Fixes merge errors
2015-08-30 12:14:08 +10:00
Sam Gibson
9322954f15
Moves devtools messaging to functions
2015-08-30 12:14:06 +10:00
Sam Gibson
04b7ce0afa
Tests rewriting redirects of POST as GET
2015-08-30 12:14:06 +10:00
Sam Gibson
2eaac7e3f9
Adds tests for gzip/deflate response decoding
2015-08-30 12:14:05 +10:00
Sam Gibson
6064ee8756
Eliminates need to box response reader
...
I don't know how idiomatic this is for rust, but the only way I could think of to do this is with a union enum and generics. As the number of decoders should never be more than a few, this shouldn't really be a problem.
2015-08-30 12:14:05 +10:00
Sam Gibson
879b058be2
Returns LoadResponse struct instead of a tuple
...
Still boxes the reader, but at least is a step in the right direction
2015-08-30 12:14:05 +10:00
Sam Gibson
3c756d254b
Avoids sending a request body on a redirect
2015-08-30 12:14:04 +10:00
Sam Gibson
15d82091c5
Fixes tidy overlong lines
2015-08-30 12:14:04 +10:00
Sam Gibson
ea2d7f4dd5
Uses the correct url when reporting http errors
2015-08-30 12:14:03 +10:00