Ashley Mannix
|
e2fa97254e
|
support async gzip decoding
|
2017-08-18 19:43:06 +10:00 |
|
Sean McArthur
|
df4b6bd8db
|
fix broken test now that hyper does not include content-length when body is empty
|
2017-07-28 14:17:19 -07:00 |
|
Sean McArthur
|
2d11a4bd71
|
fix 307/308 redirects with GET requests
|
2017-07-24 16:11:54 -07:00 |
|
Sean McArthur
|
478309e03f
|
Merge pull request #152 from seanmonstar/proxy
add a `Proxy` type
|
2017-06-22 11:40:56 -07:00 |
|
Tom Prince
|
855e6615eb
|
Add error_for_status.
This makes it it easy to turn error responses into error
results.
|
2017-06-22 11:03:39 -07:00 |
|
Sean McArthur
|
6cdaff4b66
|
add a Proxy type
Proxies can currently be configured to intercept HTTP, HTTPS, and all
requests. HTTPS tunneling is supported.
Closes #30
|
2017-06-22 09:49:00 -07:00 |
|
Sean McArthur
|
665b4fe718
|
upgrade hyper to v0.11
|
2017-06-21 09:47:21 -07:00 |
|
James Kominick
|
df276b2913
|
fix client tests
- `Response` `status` now returns StatusCode by value
|
2017-06-08 22:24:50 -04:00 |
|
Sean McArthur
|
1eb05958e8
|
fix test that referenced HttpVersion
|
2017-06-01 17:12:39 -07:00 |
|
Sean McArthur
|
e176dcebca
|
convert RequestBuilder to a &mut Self builder
Closes #108
|
2017-06-01 16:23:16 -07:00 |
|
Sean McArthur
|
8d784faa98
|
move all configuration from Client to ClientBuilder
|
2017-05-31 18:14:47 -07:00 |
|
Tom Prince
|
25d16f53d5
|
Some final rustfmt changes.
|
2017-05-31 14:50:32 -06:00 |
|
Tom Prince
|
a2c24a4009
|
Some slightly less trivial rustfmt changes.
|
2017-05-31 14:50:32 -06:00 |
|
Tom Prince
|
4c60e6d35f
|
Really trivial rustfmt changes.
|
2017-05-31 14:50:32 -06:00 |
|
Sean McArthur
|
a5fc8b6fe0
|
fix redirect tests that have an invalid header string
|
2017-05-31 11:34:00 -07:00 |
|
Sean McArthur
|
e00a64aa18
|
make sensitive header check include port
- adjusts to use &mut Headers
- add integration test
|
2017-05-18 10:58:41 -07:00 |
|
Sean McArthur
|
bafcd7ae6f
|
add a referer() option to disable setting Referer header on redirects
|
2017-05-18 10:56:39 -07:00 |
|
Sean McArthur
|
d514d4e6e8
|
redirect and error reform
- `Error` has been made an opaque struct.
- `RedirectPolicy` now makes use of `RedirectAttempt` and `RedirectAction`.
|
2017-05-08 11:38:48 -07:00 |
|
Sean McArthur
|
3cc4d654a3
|
fix panic from Gzip reading an empty stream
Closes #82
|
2017-05-05 11:50:07 -07:00 |
|
Cyril Plisko
|
3c933a2947
|
Add test for response' final URL
|
2017-04-07 17:41:01 +03:00 |
|
Ryan Coffman
|
1a01a1311d
|
Added test to check the Accept-Encoding is not changed if already set
|
2017-03-13 16:39:11 -07:00 |
|
Jason Schein
|
ab5e477a12
|
Add (configurable) automatic gzip decompression.
|
2017-02-26 20:08:55 -08:00 |
|
Sean McArthur
|
d71ded9dae
|
fix unused mut warning in tests
|
2017-01-11 12:00:50 -08:00 |
|
Sean McArthur
|
559ae8011a
|
add header if no Accept is set
|
2016-12-12 10:29:14 -08:00 |
|
Sean McArthur
|
e92b3e862a
|
add support for defining RedirectPolicy for a Client
|
2016-12-10 11:36:22 -08:00 |
|
Sean McArthur
|
6ef73ae206
|
switch test server to 127.0.0.1
|
2016-12-10 11:20:01 -08:00 |
|
Sean McArthur
|
3544e48e8e
|
dont try to redirect if post body cannot be reset
|
2016-11-28 11:36:42 -08:00 |
|
Sean McArthur
|
9e70497781
|
add integration tests
|
2016-11-28 09:53:16 -08:00 |
|