rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
bors-servo
61314f5253
Auto merge of #9104 - vwvww:issue_9098, r=nox
...
Refactor AssertRequestsMustNotHaveHeaders
Improve correctness of AssertRequestMustNotHaveHeaders tests
- Changed AssertRequestsMustNotHaveHeaders to AssertRequestMustNotIncudeHeaders
- Added an assertion that headers_not_expected is not empty
tested by command
./mach test unit
and all passed.
resolves #9098
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9104 )
<!-- Reviewable:end -->
2016-01-01 02:20:05 +05:30
David Rajchenbach-Teller
1e81b8c133
Resolves #4183 - Implemementing context-based MIME type sniffing
...
The version of the standard is not finalized at the time of this writing.
Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
2015-12-31 07:45:03 -05:00
Beomjin Kim
b90a836071
Refactor AssertRequestsMustNotHaveHeaders to AssertRequestMustNotIncludeHeaders
...
Improve correctness of AssertRequestMustNotHaveHeaders tests
resolves #9098
2015-12-31 13:05:09 +09:00
Abhishek Kumar
f889b1ccd7
Support responseCookies, responseContent, responseHeaders, requestCookies, getResponseHeaders,
...
getResponseContent, getRequestPostData, getRequestCookies, getResponseCookies, getEventTimings and
getSecurityInfo message for network devtools
Fixing Indentation
2015-12-21 10:28:40 -05:00
Corey Farwell
f34da4120d
Implement 'url!(..)' macro
...
https://github.com/servo/rust-url/issues/136
https://github.com/servo/rust-url/pull/137
2015-11-21 08:15:56 -05:00
Ravi Shankar
afb9b0707b
Testing cancellation during redirects
2015-11-14 10:04:32 +05:30
João Oliveira
79fcd1da95
Write unit tests for cookie isolation
2015-11-12 14:12:08 +00:00
Abhishek Kumar
de4f8ea4e6
Improve HTTP monitoring devtool support
2015-11-05 00:17:24 -05:00
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
nxnfufunezn
468eaac096
Accept Brotli-compressed HTTP responses #8156
2015-11-01 08:59:18 +05:30
bors-servo
48887acff1
Auto merge of #7939 - iawaknahc:issue-7924, r=Manishearth
...
Use typed headers API instead of set_raw
fix https://github.com/servo/servo/issues/7924
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7939 )
<!-- Reviewable:end -->
2015-10-09 15:01:22 -06:00
Louis Chan
aa6378a462
Use typed headers API instead of set_raw
2015-10-09 17:25:14 +08:00
Antonio de Luna
6c4a849e4e
removed &mut and clone
2015-10-09 01:35:03 -07:00
Prabhjyot Singh Sodhi
d27c126013
renaming AssertRequstMustHaveHeaders to AssertRequestMustIncludeHeaders
2015-10-07 22:59:47 +05:30
Prabhjyot Singh Sodhi
920bb5e4b8
tests for devtools integration with network requests/responses
2015-09-25 22:07:01 +05:30
Sam Gibson
641119206e
Remove superfluous clone
2015-09-19 19:13:51 +12: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
João Oliveira
813cdaa012
Move setting UserAgent header into http_loader::load,
...
closes #7541
2015-09-14 15:35:34 +01:00
wilmoz
64ac4f175f
Make test-tidy check that braces have spaces before or after them
2015-08-31 12:30:55 -05:00
Sam Gibson
f257b5fcef
Adds content-length to empty-bodied non-GET/HEAD requests
2015-08-30 12:14:15 +10:00
Sam Gibson
976dbc5155
Adds a test for non-default accept-encoding headers
2015-08-30 12:14:15 +10:00
Sam Gibson
9b1f2231cb
Adds a test for non-default accept headers
2015-08-30 12:14:15 +10:00
Sam Gibson
287dc7371f
Extracts some dense code to a let binding
2015-08-30 12:14:14 +10:00
Sam Gibson
86df1d3d6a
Renames AssertMustHaveHeadersRequest
2015-08-30 12:14:14 +10:00
Sam Gibson
ac0e4b4337
Renames RequestType
2015-08-30 12:14:13 +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
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
5a60fdf4ca
Moves STS update code to a function
2015-08-30 12:14:02 +10:00
Sam Gibson
c093ce8a5a
Only use the resource manager's HSTS list.
...
Simplifies a bunch of stuff.
2015-08-30 12:14:02 +10:00
Sam Gibson
ffc3877deb
Adds tests for setting/getting cookies from load
2015-08-30 12:13:35 +10:00
Sam Gibson
26a6e058e7
Adds more tests for checking request headers
2015-08-30 12:13:34 +10:00
Sam Gibson
7a09c2d924
Shifts to a series of traits/associated types instead of having a requester
2015-08-30 12:13:34 +10:00
Sam Gibson
06f09f6cdb
Adds tests for redirecting
...
servo/servo#6727
2015-08-30 12:13:34 +10:00
Sam Gibson
81fe5938bf
Removes HttpRequest, adds HttpResponse wrapper
...
The HttpRequest trait doesn't make sense, on further reflection. Rather,
just modify the method signature on the requester. The hyper request was
only being used to mutate it's headers anyway.
servo/servo#6727
2015-08-30 12:13:33 +10:00
Sam Gibson
7633cd54c2
Abstract everything but the response from hyper
...
Because we're using unsized types not for requesting, there's not a
satisfactory way of doing this without boxing the request...
Once unsized stuff lands in rust 1.2/1.3(???) then this should be
implemented with Rc's instead of Box's.
For the time being I'm not sure what else to do.
servo/servo#6727
2015-08-30 12:13:33 +10:00
Sam Gibson
6cba33a50b
Abstracts the hyper connection to a servo HttpRequester trait
...
servo/servo#6727
2015-08-30 12:13:32 +10:00
Sam Gibson
67aa11323b
Adds simple POC unit test for load
...
servo/servo#6727
2015-08-30 12:13:32 +10:00