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