3.1 KiB
3.1 KiB
2.0.0
- Remove the "synthetic error" concept. Methods that formerly returned Response now return Result<Response, Error>.
- Rewrite Error type. Instead of an enum, it's now a struct with an ErrorKind. This allows us to store the source error when appropriate, as well as the URL that caused an error.
- Move more configuration to Agent. Timeouts, TLS config, and proxy config now require building an Agent.
- Create AgentBuilder to separate the process of building an agent from using the resulting agent.
- Rewrite README and top-level documentation.
- Add ureq::request_url and Agent::request_url, to send requests with already-parsed URLs.
- Remove native_tls support.
- Remove convenience methods
options(url),trace(url), andpatch(url). To send requests with those verbs userequest(method, url). - Remove Agent::set_cookie.
- Remove Header from the public API. The type wasn't used by any public methods.
- Remove into_json_deserialize. Now into_json handles both serde_json::Value
and other types that implement serde::Deserialize. If you were using
serde_json before, you will probably have to explicitly annotate a type,
like:
let v: serde_json::Value = response.into_json();.
1.5.2
- Remove 'static constraint on Request.send(), allowing a wider variety of types to be passed. Also eliminate some copying. (#205).
- Allow turning a Response into an Error (#214).
- Update env_logger to 0.8.1 (#195).
- Remove convenience method for CONNECT verb (#177).
- Fix bugs in handling of timeout_read (#197 and #198).
1.5.1
- Use cookie_store crate for correct cookie handling (#169).
- Fix bug in picking wrong host for redirects introduced in 1.5.0 (#180).
- Allow proxy settings on Agent (#178).
1.5.0
- Add pluggable name resolution. Users can now override the IP addresses for hostnames of their choice (#148).
- bugfix: Don't re-pool streams on drop. This would occur if the user called
response.into_reader()and dropped the resultingReadbefore reading all the way to EOF. The result would be a BadStatus error on the next request to the same hostname. This only affected users using an explicit Agent (#160). - Automatically set Transfer-Encoding: chunked when using
send(#86). into_reader()now returnsimpl Read + Sendinstead ofimpl Read(#156).- Add support for log crate (#170).
- Retry broken connections in more cases (should reduce BadStatus errors; #168).
1.4.1
- Use buffer to avoid byte-by-byte parsing result in multiple syscalls.
- Allow pooling multiple connections per host.
- Put version in user agent "ureq/1.4.1".
1.4.0
- Propagate WouldBlock in io:Error for Response::to_json.
- Merge multiple cookies into one header to be spec compliant.
- Allow setting TLSConnector for native-tls.
- Remove brackets against TLS lib when IPv6 addr is used as hostname.
- Include proxy in connection pool keys.
- Stop assuming localhost for URLs without host part.
- Error if body length is less than content-length.
- Validate header names.
1.3.0
- Changelog start