docs/comments: fix some typos (#1346)
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
- Add `Response::bytes_stream()` method to get body as an `impl Stream`.
|
||||
- Add `Request::try_clone()` method.
|
||||
|
||||
- Change default `Client` API to async. The previous blocking client API is avaialble at `reqwest::blocking`.
|
||||
- Change default `Client` API to async. The previous blocking client API is available at `reqwest::blocking`.
|
||||
- Change to no longer send a default `User-Agent` header. Add one via `ClientBuilder::user_agent()`.
|
||||
- Change to enable system/environment proxy detection by default.
|
||||
- Change `default-tls` feature to only include `ClientBuilder` options that both `native-tls` and `rustls` support.
|
||||
@@ -224,7 +224,7 @@
|
||||
|
||||
### Features
|
||||
|
||||
- Add `multipart::Form::percent_encode_noop()` to allow for servers which don't support percent encoding of paramters.
|
||||
- Add `multipart::Form::percent_encode_noop()` to allow for servers which don't support percent encoding of parameters.
|
||||
- Add `ClientBuilder::http1_title_case_headers()` to force request headers to use Title-Case.
|
||||
- Add `ClientBuilder::connect_timeout()` to allow setting only a connect timeout.
|
||||
|
||||
|
||||
@@ -334,7 +334,7 @@ impl<P: PartProps> FormParts<P> {
|
||||
let header = self.percent_encoding.encode_headers(name, field.metadata());
|
||||
let header_length = header.len();
|
||||
self.computed_headers.push(header);
|
||||
// The additions mimick the format string out of which the field is constructed
|
||||
// The additions mimic the format string out of which the field is constructed
|
||||
// in Reader. Not the cleanest solution because if that format string is
|
||||
// ever changed then this formula needs to be changed too which is not an
|
||||
// obvious dependency in the code.
|
||||
|
||||
@@ -10,7 +10,7 @@ use bytes::Bytes;
|
||||
|
||||
/// Actions for a persistent cookie store providing session support.
|
||||
pub trait CookieStore: Send + Sync {
|
||||
/// Store a set of Set-Cookie header values recevied from `url`
|
||||
/// Store a set of Set-Cookie header values received from `url`
|
||||
fn set_cookies(&self, cookie_headers: &mut dyn Iterator<Item = &HeaderValue>, url: &url::Url);
|
||||
/// Get any Cookie values in the store for `url`
|
||||
fn cookies(&self, url: &url::Url) -> Option<HeaderValue>;
|
||||
|
||||
Reference in New Issue
Block a user