Nikhil Benesch
f60456c8e3
Upgrade to url v2.0 ( #583 )
2019-09-04 18:27:20 -07:00
danieleades
cf8944a0f0
cargo fmt ( #604 )
...
Run rustfmt and setup CI to check for it.
2019-08-29 09:52:39 -07:00
Bas De Bue
81e0f1ff2a
Change Part::stream to reqwest::r#async::Chunk
2019-08-21 13:06:49 -07:00
Daniel Eades
4bb4149b63
remove unnecessary double-colons
2019-08-16 12:59:55 -07:00
Daniel Eades
3ba4b6eadf
port all optional features to 2018-edition
2019-08-16 12:59:55 -07:00
Daniel Eades
4773408ae4
switch to 2018 edition module structure
2019-08-16 12:59:55 -07:00
Daniel Eades
1452ca2bd1
remove unnecessary extern crate lines
2019-08-16 12:59:55 -07:00
Daniel Eades
5dc5162765
update and tidy code
2019-08-16 12:59:55 -07:00
Daniel Eades
86d9cbc66e
cargo fix --edition
2019-08-16 12:59:55 -07:00
WindSoilder
577d06c363
Add support for system/environment proxies ( #547 )
2019-07-01 16:27:58 -07:00
messense
1e7c9fe507
Sync Response::text() & Response::json() call their async version
2019-06-26 11:11:07 -07:00
messense
c5f2bf6c32
Add Response::text() to async Client
2019-06-26 11:11:07 -07:00
Dmitry Pankratov
e16aed5e3c
Added support for sending requests with streaming Body ( #545 )
2019-06-14 10:29:54 -07:00
Patrick Fernie
6e5ee3b975
disable percent encoding of cookie name/value when sending request
2019-06-06 11:05:14 -07:00
nirasan
9f22f46e85
Clarify correct specification of dependency on serde ( #525 )
...
Closes #494
2019-05-16 10:46:00 -07:00
prfss
c7da30149a
Fix cookie header to not include set-cookie attributes ( #522 )
2019-05-15 13:12:22 -07:00
Ben Boeckel
1bdc3fa3c8
request: test adding duplicate headers to the request ( #519 )
2019-05-03 11:48:31 -07:00
WindSoilder
e0a52dcf5d
Include new cookie header after a redirect ( #514 )
...
Closes #510
2019-04-30 15:15:41 -07:00
Sean McArthur
29f7fa74cc
combine ClientError and ServerError into Status kind
2019-04-25 10:54:55 -07:00
Sean McArthur
e4b91ad201
improve error messages from gzip decoder
2019-04-25 10:28:13 -07:00
quininer
6fe3d6a8a0
fix gzip + chunked encoding reuse of connection ( #509 )
...
Closes #508
2019-04-25 09:46:39 -07:00
Adilson Neto
f798a8b2df
Remove trailing '?' on empty query. ( #506 )
...
Closes #464
2019-04-24 17:36:24 -07:00
Sean McArthur
f6ce085457
Propagate async timeout to response body ( #503 )
2019-04-22 15:24:35 -07:00
Sean McArthur
ce51fe83d6
Add request timeout support to async Client ( #501 )
...
Closes #496
2019-04-22 12:43:30 -07:00
Jerome Gravel-Niquet
77434a29aa
Fix overwriting of appended request headers ( #493 )
...
* don't overwrite appended user headers
* Fixes tests, all header ordering related
* does not need to clone default headers, added a test
2019-04-15 12:33:03 -07:00
Christoph Herzog
9935a8e117
CookieStore cleanup/fixes
...
* Remove TODO
* Remove Cookie::set_ setters
* Do not expose SameSite enum, provide getters on Cookie instead
* Simplify Response::cookies signature (now ignores errors)
2019-04-09 12:54:10 -07:00
Christoph Herzog
954fdfae30
Implement cookie store support
...
This commit introduces a cookie store / session support
for both the async and the sync client.
Functionality is based on the cookie crate,
which provides a HTTP cookie abstraction,
and the cookie_store crate which provides a
store that handles cookie storage and url/expiration
based cookie resolution for requests.
Changes:
* adds new private dependencies: time, cookie, cookie_store
* a new cookie module which provides wrapper types around
the dependency crates
* a Response::cookies() accessor for iterating over response cookies
* a ClientBuilder::cookie_store() method that enables session functionality
* addition of a cookie_store member to the async client
* injecting request cookies and persisting response cookies
* cookie tests
NOTE: this commit DOES NOT expose the CookieStore itself,
limiting available functionality.
This is desirable, but omitted for now due to API considerations that should be fleshed out in the future.
This means users do not have direct access to the cookie session for now.
2019-04-09 12:54:10 -07:00
Diggory Blake
c45ff29bfb
Add support for SOCKS5 proxies, and parsing proxy authorizations from URLs
2019-04-08 11:42:18 -07:00
Sean McArthur
5c3494b81d
Check redirect locations are valid Uris ( #486 )
...
Closes #484
2019-04-01 11:13:01 -07:00
Sean McArthur
faaf41cdfb
Fix basic_auth async builder to send capital "Basic"
...
Closes #468
2019-03-20 14:11:40 -07:00
quininer
47640170bb
Add tcp_nodelay for Builder
2019-03-20 14:09:31 -07:00
CJP10
a54bfc1a39
added max_idle_per_host as an option to the builder ( #473 )
2019-03-19 13:23:32 -07:00
quininer
3554b0ad26
replace libflate with flate2 ( #476 )
2019-03-19 13:21:43 -07:00
Frank Benkstein
08847cc9f5
add bearer auth to async RequestBuilder ( #475 )
2019-03-13 11:00:54 -07:00
Ian Smith
215981e7a0
Add percent_encode_noop configuration to Form ( #467 )
...
Some implementations of multipart/form parsing don't support alternate
encodings, but do allow unicode in 'standard' parameter values. This
change allows users to specify that they do not want to encode
parameters.
(See also: #419 , #420.)
2019-03-04 11:21:35 -08:00
Antoine Carton
aa8348ba1e
Add http1_title_case_headers option to ClientBuilder ( #463 )
2019-02-27 13:21:50 -08:00
Constantin Nickel
4fba983e5e
async/client: return a impl Future on execute()
2019-02-20 17:59:12 -08:00
Sean McArthur
9e2b56ba56
Add connect_timeout to async and sync clients
2019-02-20 15:15:55 -08:00
Michael Habib
e49f5ee404
add Response::error_for_status_ref to allow borrowing ( #457 )
2019-02-15 14:33:18 -08:00
Luca Bruno
0c84e6b9e9
async/request: add a basic example for send()
2019-02-15 10:33:57 -08:00
Luca Bruno
8b62f47ac3
async/request: return a impl Future on send()
2019-02-15 10:33:57 -08:00
Luca Bruno
5e38b419f0
async/reponse: return a impl Future on json()
2019-02-15 10:33:57 -08:00
Michael Habib
4dc679d535
Add ClientBuilder::local_address option to bind to a local IP address ( #451 )
...
Closes #414
2019-02-11 10:40:16 -08:00
Evan Schwartz
6e8e781f8f
Add ClientBuilder::h2_prior_knowlege() ( #443 )
...
resolves https://github.com/seanmonstar/reqwest/issues/413
2019-01-18 14:15:57 -08:00
Sean McArthur
021851afd4
Enable h2 ALPN with rustls-tls backend
2019-01-18 11:53:56 -08:00
Sean McArthur
68e98d54ea
Add Response::content_length() method
2019-01-18 11:42:27 -08:00
Sean McArthur
81b4d26682
Try to detect Certificate and Identity errors earlier
2019-01-11 15:43:00 -08:00
Sean McArthur
b71787be86
refactor DNS resolver construction
...
- System Conf is read as `ClientBuilder::build()` time, providing the
error earlier.
- If there is an error reading the resolve system conf, a better error
is reported.
- Resolver only needs to lock a mutex once to spawn the background task,
instead of every single `resolve` call.
2019-01-10 12:47:29 -08:00
Shou Ya
b129ab0bb4
fix multipart with unicode filename ( #420 )
2019-01-08 21:01:52 -08:00
Sean McArthur
691bcfe894
improve general documentation
2019-01-07 14:20:39 -08:00