Skip to content

Latest commit

 

History

History
1634 lines (906 loc) · 76 KB

CHANGELOG.md

File metadata and controls

1634 lines (906 loc) · 76 KB

v0.11.8 (2017-12-06)

Bug Fixes

  • client:
    • return error instead of unmatched response when idle (95e0164e)
    • remove idle connections when read eof is found (cecef9d4)
    • always wait on reads for pooled connections (9f212410)
    • don't leak connections with no keep-alive (d2aa5d86, closes #1383)
  • conn: handle when pre-emptive flushing closes the write state (8f938d97, closes #1391)
  • lib: fix no_proto dispatcher to flush queue before polling more body (121b5eef)
  • server: allow TLS shutdown before dropping connections with no_proto (60d0eaf8, closes #1380)

Features

  • headers: Implement ProxyAuthorization (#1394) (c93cdb29)
  • server:
    • Allow keep alive to be turned off for a connection (#1390) (eb9590e3, closes #1365)
    • add Http.serve_incoming to wrap generic accept steams (e4864a2b)

v0.11.7 (2017-11-14)

Bug Fixes

  • client:
    • drop in-use connections when they finish if Client is dropped (b1765dd1)
    • don't read extra bytes on idle connections (7c4b814e)
  • server: GET requests with no body have None instead of Empty (8bf79648, closes #1373)

Features

  • client:
    • skip dns resolution when host is a valid ip addr (b1785c66)
    • allow custom executors for HttpConnector (ed497bf5)
    • add names to DNS threads (e0de55da)
  • header: implement ByteRangeSpec::to_satisfiable_range (bb54e36c)
  • lib: add support to disable tokio-proto internals (f7532b71)
  • server:
    • add const_service and service_fn helpers (fe38aa4b)
    • add server::Serve that can use a shared Handle (39cf6ef7)
    • allow creating Server with shared Handle (0844dede)

v0.11.6 (2017-10-02)

Bug Fixes

  • server: fix experimental pipeline flushing (6b4635fd)

v0.11.5 (2017-10-02)

Bug Fixes

  • http: avoid infinite recursion when Body::from is called with Cow::Owned. (#1343) (e8d61737)

v0.11.4 (2017-09-28)

Bug Fixes

v0.11.3 (2017-09-28)

Features

  • header: add ContentType::xml() constructor (92595e84)
  • http: add Body::from(cow) for bytes and strings (425ff71d)
  • lib: implement compatibility with http crate (0c7d375b)
  • server:
    • add experimental pipeline flush aggregation option to Http (dd54f20b)
    • remove unneeded Send + Sync from Server (16e834d3)

Bug Fixes

  • client:
    • cleanup dropped pending Checkouts from Pool (3b91fc65, closes #1315)
    • return Version errors if unsupported (41c47241, closes #1283)
  • http: log errors passed to tokio at debug level (971864c4, closes #1278)
  • lib:
    • Export hyper::RawStatus if the raw_status feature is enabled (627c4e3d)
    • remove logs that contain request and response data (207fca63, closes #1281)

Performance

  • server: try to read from socket at keep-alive (1a9f2648)

v0.11.2 (2017-07-27)

Bug Fixes

  • client: don't assume bodies on 204 and 304 Responses (81c0d185, closes #1242)
  • header: fix panic from headers.remove when typed doesn't match (4bd9746a)
  • http:
    • allow zero-length chunks when no body is allowed (9b47e186)
    • fix encoding when buffer is full (fc5b9cce)
    • skip zero length chunks when encoding (d6da3f7b)
  • server:
    • improve detection of when a Response can have a body (673e5cb1, closes #1257)
    • reject Requests with invalid body lengths (14cbd400)
    • do not automatically set ContentLength for 204 and 304 Responses (c4c89a22)
  • uri: fix Uri parsing of IPv6 and userinfo (7081c449, closes #1269)

Features

  • headers: export missing header types (c9f4ff33)
  • server: Provide reference to Response body (a79fc98e, closes #1216)
  • status: add as_u16() method to StatusCode (5f6f252c)

v0.11.1 (2017-07-03)

Features

  • server: Handle 100-continue (6164e764)

v0.11.0 (2017-06-13)

Bug Fixes

  • header:
    • add length checks to ETag parsing (643fac1e)
    • prevent 2 panics in QualityItem parsing (d80aae55)
    • Allow IPv6 Addresses in Host header (8541ac72)
    • Remove raw part when getting mutable reference to typed header (f38717e4, closes #821)
    • only add chunked to TransferEncoding if not present (1b4f8579)
    • ignore invalid cookies (310d98d5)
  • http:
    • Chunked decoder reads last \r\n (bffde8c8)
    • make Chunked decoder resilient in an async world (8672ec5a)
  • server:
    • support HTTP/1.1 pipelining (523b890a)

Features

  • body:
    • implement Extend and IntoIterator for Chunk (78512bdb)
    • add Default trait to Body (f61708ba)
    • implement Default for Body (6faa653f)
    • implement Default for Chunk (f5567db4)
  • client:
    • add HttpConnector.enforce_http (1c34a05a)
    • add an accessor for the request body (4e26646a)
    • Response.status() now returns a StatusCode by value (d63b7de4)
    • add Client::handle (9101817b)
    • add Request.set_proxy for HTTP proxy requests (e8714116, closes #1056)
    • DNS worker count is configurable (138e1643)
    • add keep_alive_timeout to Client (976218ba)
  • error: Display for Error shows better info (49e196db, closes #694)
  • header:
    • add ContentType::octet_stream() constructor (1a353102)
    • change Cookie to be map-like (dd03e723, closes #1145)
    • add Cookie::iter() (edc1c0dd)
    • implement fmt::Display for several headers (e9e7381e)
    • add Headers::append_raw (b4b2fb78)
    • Add support for Retry-After header (1037bc77)
    • add Encoding::Brotli variant (f0ab2b6a)
    • introduce header::Raw (#869) (50ccdaa7)
    • add TE header struct (#1150) (f1859dfd, closes #1109)
    • support Opaque origin headers (#1147) (41485997, closes #1065)
    • add HeaderView.raw() (8143c33b)
    • impl Eq for ContentType (bba761ac)
    • add Link header implementation (592c1e21, closes #650)
    • add star, json, text, image constructors to Accept (bdc19d52)
    • Add strict-origin and strict-origin-when-cross-origin referer policy (3593d798)
    • support multiple values for Referrer-Policy header (7b558ae8, closes #882)
    • add Warning header (69894d19, closes #883)
    • Headers::remove returns the Header (9375addb, closes #891)
    • add ContentLocation header (13c5bf66, closes #870)
    • add LastEventId header (e1542a60)
    • add `Origin header (01843f88, closes #651)
    • Add ReferrerPolicy header (3a86b3a2)
  • http:
    • add Into for Chunk (fac3d70c)
    • use the bytes crate for Chunk and internally (65b3e08f)
    • allow specifying custom body streams (1b1311a7)
  • lib:
    • add raw_status feature in Cargo.toml (acd62cda)
    • remove extern Url type usage (4fb7e6eb)
    • export Method::Put at top level (5c890321)
    • redesign API to use Futures and Tokio (2d2d5574)
    • switch to non-blocking (asynchronous) IO (d35992d0)
  • mime: upgrade to mime v0.3 (f273224f, closes #738)
  • server:
    • make Http default its body type to hyper::Chunk (dc97dd77)
    • make Http compatible with TcpServer (e04bcc12, closes #1036)
    • add path() and query() to Request (8b3c1206, closes #896, #897)
  • status:
    • add StatusCode::try_from(u16). (f953cafe)
    • remove deprecated StatusClass (94ee6204)
    • impl Into for StatusCode (c42f18db)
  • uri:
  • version: impl FromStr for HttpVersion (47f3aa62)

Breaking Changes

  • The Cookie header is no longer a wrapper over a Vec<String>. It must be accessed via its get and set methods.

(dd03e723)

  • Any use of Quality(num) should change to q(num).

(a4644959)

  • HttpDate no longer has public fields. Convert between HttpDate and SystemTime as needed.

(316c6fad)

  • The link_extensions methods of the Link header are removed until fixed.

(011f28cb)

  • The fmt_header method has changed to take a different formatter. In most cases, if your header also implements fmt::Display, you can just call f.fmt_line(self).

(6f02d43a)

  • The Encoding enum has an additional variant, Trailers.

(f1859dfd)

  • Origin.scheme and Origin.host now return Options, since the Origin could be null.

(41485997)

  • If you were explicitly checking the StatusCode, such as with an equality comparison, you will need to use the value instead of a reference.

(d63b7de4)

  • This removes several deprecated methods for converting Headers into strings. Use more specialized methods instead.

(ec91bf41)

  • The Url type is no longer used. Any instance in the Client API has had it replaced with hyper::Uri.

    This also means Error::Uri has changed types to hyper::error::UriError.

    The type hyper::header::parsing::HTTP_VALUE has been made private, as an implementation detail. The function http_percent_encoding should be used instead.

(4fb7e6eb)

  • This makes Request.remote_addr an Option<SocketAddr>, instead of SocketAddr.

(e04bcc12)

  • The Preference header had a typo in a variant and it's string representation, change Preference::HandlingLeniant to Preference::HandlingLenient. (2fa414fb)
  • Server is no longer the primary entry point. Instead, an Http type is created and then either bind to receive a Server, or it can be passed to other Tokio things. (f45e9c8e)
  • The name of RequestUri has changed to Uri. It is no longer an enum, but an opaque struct with getter methods.

(9036443e)

  • This adds a new variant to the Encoding enum, which can break exhaustive matches.

(f0ab2b6a)

  • The fields of the Host header are no longer available. Use the getter methods instead.

(cd9fd522)

  • A big sweeping set of breaking changes.

(2d2d5574)

  • Headers.remove() used to return a bool, it now returns Option<H>. To determine if a a header exists, switch to Headers.has(). (9375addb)
  • Header::parse_header now receives &Raw, instead of a &[Vec<u8>]. Raw provides several methods to ease using it, but may require some changes to existing code. (50ccdaa7)
  • LanguageTag used to be at the crate root, but it is now in the hyper::header module.

(40745c56)

  • Removes the undocumented from_u16 function. Use StatusCode::try_from instead.

    Also makes the status module private. All imports of hyper::status::StatusCode should be hyper::StatusCode.

(f953cafe)

  • All usage of status.class() should change to equivalent status.is_*() methods.

(94ee6204)

  • Most uses of mime will likely break. There is no more mime! macro, nor a Mime constructor, nor TopLevel and SubLevel enums.

    Instead, in most cases, a constant exists that can now be used.

    For less common mime types, they can be created by parsing a string.

(f273224f)

  • To use RawStatus, you must enable the raw_status crate feature.

(acd62cda)

  • Some headers used UniCase, but now use unicase::Ascii. Upgrade code to Ascii::new(s).

(c81edd41)

  • This breaks a lot of the Client and Server APIs. Check the documentation for how Handlers can be used for asynchronous events.

(d35992d0)

v0.10.9 (2017-04-19)

Features

  • server: add local_addr to retrieve resolved address (71f250ad)

v0.10.8 (2017-04-11)

Features

  • client:
    • introduce PooledStream::<S>::get_ref (a54ce30f)
    • introduce Response::get_ref (5ef0ec2c)

v0.10.7 (2017-04-08)

Bug Fixes

  • server: don't dup the listener TCP socket. (d2362331)

v0.10.6 (2017-04-05)

Features

  • buffer: add from_parts and into_parts functions (78551dd0)

v0.10.5 (2017-03-01)

Bug Fixes

  • http:
    • Consume entire chunked encoding message (4147fcd0)
    • fix returning EarlyEof if supplied buffer is zero-len (1e740fbc)

v0.10.4 (2017-01-31)

Features

  • header: implement fmt::Display for several headers (d5075770)

v0.10.3 (2017-01-30)

Bug Fixes

  • header:
    • deprecate HeaderFormatter (282466e1)
    • enable SetCookie.fmt_header when only 1 cookie (7611c307)

Features

  • header: add Headers::append_raw (6babbc40)

v0.10.2 (2017-01-23)

Bug Fixes

  • header: security fix for header values that include newlines (2603d78f)
  • net: set timeouts directly in accept (f5d4d653)

Breaking Changes

  • This technically will cause code that a calls SetCookie.fmt_header to panic, as it is no longer to properly write that method. Most people should not be doing this at all, and all other ways of printing headers should work just fine.

    The breaking change must occur in a patch version because of the security nature of the fix.

(2603d78f)

v0.10.1 (2017-01-19)

v0.10.0 (2017-01-10)

Features

  • client:
    • change ProxyConfig to allow HTTPS proxies (14a4f1c2)
    • remove experimental HTTP2 support (d301c6a1)
  • header: remove cookie dependency (f22701f7)
  • lib:
    • remove SSL dependencies (2f48612c)
    • remove serde-serialization feature (7b9817ed)

Breaking Changes

  • There is no more hyper::http::h2.

    (d301c6a1)

  • The Cookie and SetCookie headers no longer use the cookie crate. New headers can be written for any header, or the ones provided in hyper can be accessed as strings.

    (f22701f7)

  • There is no longer a serde-serialization feature. Look at external crates, like hyper-serde, to fulfill this feature.

    (7b9817ed)

  • hyper will no longer provide OpenSSL support out of the box. The hyper::net::Openssl and related types are gone. The Client now uses an HttpConnector by default, which will error trying to access HTTPS URLs.

    TLS support should be added in from other crates, such as hyper-openssl, or similar using different TLS implementations.

    (2f48612c)

  • Usage of with_proxy_config will need to change to provide a network connector. For the same functionality, a hyper::net::HttpConnector can be easily created and passed.

    (14a4f1c2)

v0.9.14 (2016-12-12)

Features

  • headers: add star, json, text, image constructors to Accept (a9fbbd7f)
  • server: add 'take_buf' method to BufReader (bbbce5fc)

v0.9.13 (2016-11-27)

Bug Fixes

  • client: close Pooled streams on sockopt error (d5ffee2e)

v0.9.12 (2016-11-09)

Features

  • error: re-export url::ParseError (30e78ac2)

v0.9.11 (2016-10-31)

Bug Fixes

  • headers: Allow IPv6 Addresses in Host header (20f177ab)

Features

  • headers:
    • Add strict-origin and strict-origin-when-cross-origin referer policy (1be4e769)
    • support multiple values for Referrer-Policy header (dc476657, closes #882)
    • add last-event-id header (2277987f)
  • server: accept combined certificate files (eeb1f48e)

v0.9.10 (2016-07-11)

Features

v0.9.9 (2016-06-21)

Bug Fixes

  • headers: Remove raw part when getting mutable reference to typed header (63b61524, closes #821)

Features

  • error: Display for Error shows better info (5620fbf9, closes #694)

v0.9.8 (2016-06-14)

Features

  • client: enable use of custom TLS wrapper for proxied connections (0476196c, closes #824)

v0.9.7 (2016-06-09)

Bug Fixes

  • proxy: fix the 0.9.x build with --no-default-features --features=security-framework (6caffe9f, closes #819)
  • server: Request.ssl() works (ce0b62ea)

v0.9.6 (2016-05-23)

Bug Fixes

  • client: Manually impl Debug for PooledStream (aa692236)
  • server: Switch Ssl to SslServer in bounds (470bc8ec)

v0.9.5 (2016-05-18)

Bug Fixes

  • windows: disable openssl cert validation for Windows (c89aca81, closes #794)

Features

  • net: Add OpensslClient constructor (3c0e1050)

v0.9.4 (2016-05-09)

Bug Fixes

  • warnings: remove unused_code warnings from newest nightlies (e7229480)

Features

  • ssl:
    • enable hostname verification by default for OpenSSL (01160abd, closes #472)
    • use secure ciphers by default in openssl (54bf6ade)

v0.9.3 (2016-05-09)

Bug Fixes

  • client: fix panic in Pool::connect (e51bafe2, closes #780)

v0.9.2 (2016-05-04)

Features

Performance

  • client: don't keep Pool mutex locked during getaddrinfo (5fcc04a6)

v0.9.1 (2016-04-21)

Bug Fixes

  • Cargo.toml: update documentation link (b783ddf4)

v0.9.0 (2016-04-21)

Features

  • net: Add Ssl impls for security-framework (f37315b2)

Breaking Changes

  • The re-exported Url type has breaking changes. (8fa7a989)

v0.8.1 (2016-04-13)

Bug Fixes

  • headers: correctly handle repeated headers (70c69142, closes #683)

Features

  • header: add prefer and preference applied headers (6f649301, closes #747)
  • net: Split Ssl into SslClient and SslServer (2c86e807, closes #756)

v0.8.0 (2016-03-14)

Bug Fixes

  • headers: remove charset from ContentType::json() convenience method (ec568e9a)
  • net: fix the typo in set_write_timeout (7c76fff3)

Features

  • client: Implement Debug for Client (8c7ef7fd)
  • status: add HTTP statuses 421 and 451 (93fd5a87)

Breaking Changes

  • mime 0.2 depends on serde 0.7, so any instances of using older versions of serde will need to upgrade.

(146df53c)

v0.7.2 (2016-01-04)

Bug Fixes

  • buffer: fix incorrect resizing of BufReader (3a18e72b, closes #715)

Features

  • headers: allow ExtendedValue structs to be formatted and used as struct members (da0abe89)

v0.7.1 (2015-12-19)

Bug Fixes

  • cargo: remove * dependencies for serde and env_logger (4a05bee9)
  • server:
    • Flush 100-continue messages (92ff50f2, closes #704)
    • Removed check for GET/HEAD request when parsing body (0b05c590, closes #698)

Features

  • headers: add extended parameter parser to the public API (402fb76b)

v0.7.0 (2015-11-24)

Features

  • all: add socket timeouts (fec6e3e8)
  • headers:
    • Add Content-Disposition header (7623ecc2, closes #561)
    • Add Access-Control-Allow-Credentials header (19348b89, closes #655)
    • re-export CookiePair and CookieJar (799698ca)

Breaking Changes

  • This adds 2 required methods to the NetworkStream trait, set_read_timeout and set_write_timeout. Any local implementations will need to add them.

(fec6e3e8)

  • LanguageTags api is changed.

(c747f99d)

v0.6.16 (2015-11-16)

Bug Fixes

  • response: respond with a 500 if a handler panics (63c6762c)

Features

  • headers: Add Access-Control-Expose-Headers (f783e991)
  • server: Add hooks for HttpListener and HttpsListener to be started from existing listener (fa0848d4)

Breaking Changes

  • RequestBuilder<U> should be replaced by RequestBuilder.

(ff4a6070)

v0.6.15 (2015-10-09)

Bug Fixes

  • server: use a timeout for Server keep-alive (cdaa2547, closes #368)

Features

  • client: add patch method to Client builder interface (03827c31)

v0.6.14 (2015-09-21)

Bug Fixes

  • http:
    • Add a stream enum that makes it impossible to lose a stream (be4e7181)
    • Make sure not to lose the stream when CL is invalid (a36e44af)
  • server: use EmptyWriter for status codes that have no body (9b2998bd)
  • timeouts: remove rust #![feature] for socket timeouts (b8729698)

Features

  • headers: add PartialEq impl for Headers struct (76cbf384)

v0.6.13 (2015-09-02)

Bug Fixes

  • client: EofReader by nature means the connection is closed (32e09a04)

v0.6.12 (2015-09-01)

Bug Fixes

  • client: be resilient to invalid response bodies (75c71170, closes #640)
  • examples: "cargo test --features serde-serialization" (63608c49)
  • http: fix several cases in HttpReader (5c7195ab)

Features

  • server: Add Handler per-connection hooks (6b6182e8)

v0.6.11 (2015-08-27)

Bug Fixes

  • client: fix panics when some errors occurred inside HttpMessage (ef15257b)
  • headers: case insensitive values for Connection header (341f8eae, closes #635)

Breaking Changes

  • This changes the signature of HttpWriter.end(), returning a EndError that is similar to std::io::IntoInnerError, allowing HttpMessage to retrieve the broken connections and not panic.

    The breaking change isn't exposed in any usage of the Client API, but for anyone using HttpWriter directly, since this was technically a public method, that change is breaking.

(ef15257b)

v0.6.10 (2015-08-19)

Bug Fixes

  • client: close connection when there is an Error (d32d35bb)

Features

  • uri: implement fmt::Display for RequestUri () (80931cf4, closes #629)

v0.6.9 (2015-08-13)

Bug Fixes

  • client:
    • improve keep-alive of bodyless Responses (67c284a9)
    • improve HttpReader selection for client Responses (31f117ea, closes #436)
  • nightly: remove feature flag for duration (0455663a)

Features

  • headers: Content-Range header (af062ac9)
  • net: impl downcast methods for NetworkStream (without + Send) (1a91835a, closes #521)
  • server: add Request.ssl() to get underlying ssl stream (7909829f, closes #627)

v0.6.8 (2015-08-03)

Features

  • raw-fd: implement FromRawFd/FromRawSocket (664bde58)

v0.6.7 (2015-08-03)

Bug Fixes

  • headers: fix broken deserialization of headers (f5f5e1cb)

Features

  • net:
    • Implement NetworkConnector for closure to be more flexible (abdd4c5d)
    • add socket timeouts to Server and Client (7d1f154c, closes #315)

Breaking Changes

  • Any custom implementation of NetworkStream must now implement set_read_timeout and set_write_timeout, so those will break. Most users who only use the provided streams should work with no changes needed.

Closes #315

(7d1f154c)

v0.6.5 (2015-07-23)

Bug Fixes

  • tests: iter.connect() is now iter.join() (d2e8b5dc)

Features

  • status:
    • implement Hash for StatusCode (d84f291a)
    • implement Hash for StatusCode (aa85f609)

v0.6.4 (2015-07-23)

Features

  • http: add optional serialization of common types via serde (87de1b77)

v0.6.3 (2015-07-08)

Bug Fixes

  • lint: change deny(missing_docs) to only apply for tests (5994a6f8, closes #600)

v0.6.2 (2015-07-06)

Bug Fixes

  • http: no longer keep alive for Http1.0 if no Connection header (ddecb262, closes #596)

Features

  • client: add url property Response (82ed9092)
  • headers: add strict-transport-security header (7c2e5124, closes #589)

Breaking Changes

  • Access-Control-Allow-Origin does no longer use Url

(ed458628)

  • Technically a break, since Response::new() takes an additional argument. In practice, the only place that should have been creating Responses directly is inside the Client, so it shouldn't break anyone. If you were creating Responses manually, you'll need to pass a Url argument.

(82ed9092)

v0.6.1 (2015-06-26)

Bug Fixes

  • benches: adjust to missing set_ssl_verifier (eb38a11b)
  • cargo: fix linking on OSX 10.10 (9af2b66f)
  • client: use Ssl instance in creation of SslStream (1a490e25)

v0.6.0 (2015-06-24)

Bug Fixes

  • client: check for drained stream in Response::drop (e689f203)

Features

  • client:
  • error: add private __Nonexhaustive variant to Error (7c0421e3)
  • headers:
  • http2:
    • implement message API for HTTP/2 (f0fe2c5a)
    • add new error variant for HTTP/2 (48e9ca2f)
    • add dependency on solicit (3122ffef)
  • langtags: use true language tags in headers (99ff7e62)
  • ssl: redesign SSL usage (53bba6eb)

Breaking Changes

  • AcceptLanguage and ContentLanguage use LanguageTag now, Language removed from Hyper.

(99ff7e62)

  • Server::https was changed to allow any implementation of Ssl. Server in general was also changed. HttpConnector no longer uses SSL; using HttpsConnector instead.

(53bba6eb)

  • Connectors and Protocols passed to the Client must now also have a Sync bounds, but this shouldn't break default usage.

(64e47b4b)

  • parse_header returns Result instead of Option, related code did also change

(195a89fa)

  • Adds a new variant to public Error enum. The proper fix is to stop matching exhaustively on hyper::Error.

(7c0421e3)

  • A new variant Http2 added to a public enum hyper::Error.

(48e9ca2f)

  • hyper::client::request::Response is no longer generic over NetworkStream types. It no longer requires a generic type parameter at all.

(aa297f45)

v0.5.2 (2015-06-01)

Bug Fixes

  • buffer: check capacity before resizing (b1686d1b)

v0.5.1 (2015-05-25)

Bug Fixes

  • client: don't close stream until EOF (a5e6174e, closes #543)

Features

  • client: implement Default trait for client (be041d91)
  • header: add ContentType::form_url_encoded() constructor (2c99d4e9)
  • headers: return hyper::Error instead of () from header components (5d669399)
  • http: add get_mut method to HttpReader (e64ce8c0)

Breaking Changes

  • Error enum extended. Return type of header/shared/ types changed.

(5d669399)

v0.5.0 (2015-05-12)

Bug Fixes

  • client:
    • don't call close() inside Request (3334fca2, closes #519)
    • keep the underlying connector when setting an SSL verifier (f4556d55, closes #495)
  • mock: adjust ChannelMockConnector connect method to compile (085d7b07)

Features

  • header:
    • add ContentType::json(), plaintext(), html(), jpeg(), and png() constructors (b6114ecd)
    • add Connection::close() and ::keep_alive() constructors (c2938fb4)
    • export __hyper__tm! macro so test modules work with header! (f64fb10b)
  • net:
    • remove mut requirement for NetworkConnector.connect() (1b318724)
    • add set_ssl_verifier method to NetworkConnector trait (a5d632b6)
  • server: check Response headers for Connection: close in keep_alive loop (49b5b8fd)

Breaking Changes

  • Usage of Response.deconstruct() and construct() now use a &mut Headers, instead of the struct proper.

(49b5b8fd)

  • If you use deref! from the header module, you'll need to switch to using __hyper__deref!.

(62d96adc)

  • Any custom Connectors will need to change to &self in the connect method. Any Connectors that needed the mutability need to figure out a synchronization strategy.

    Request::with_connector() takes a &NetworkConnector instead of &mut. Any uses of with_connector will need to change to passing &C.

(1b318724)

  • Adding a new required method to a public trait is a breaking change.

(a5d632b6)

v0.4.0 (2015-05-07)

Bug Fixes

  • net: ignore NotConnected error in NetworkStream.close (6be60052, closes #508)

Features

  • error: add Ssl variant to hyper::Error (972b3a38, closes #483)
  • headers:
    • Allow null value in Access-Control-Allow-Origin (5e341714)
    • Parse Upgrade header protocols further (f47d11b9, closes #480)
    • Add From header field (ce9c4af1)
    • Add Accept-Ranges header field (2dbe3f9b)
  • method: implement AsRef<str> for Method (c29af729)
  • server:
    • add Response.send to write a sized body (d5558b68, closes #446)
    • dropping a Response will write out to the underlying stream (a9dcc59c)

Breaking Changes

  • Adds a variant to hyper::Error, which may break any exhaustive matches.

(972b3a38)

  • The terms Http and Error have been removed from the Error type and its variants. HttpError should now be accessed as hyper::Error, and variants like HttpIoError should be accessed as Error::Io.

(9ba074d1)

  • Add variant to Access-Control-Allow-Origin enum

(5e341714)

  • Upgrade header Protocol changed.

(f47d11b9)

  • from_one_raw_str() returns None on empty values.

(a6974c99)

v0.3.16 (2015-05-01)

Bug Fixes

  • header:
    • make test_module of header! optional (a5ce9c59, closes #490)
    • exporting test_header! macro (2bc5a779)
  • http: keep raw reason phrase in RawStatus (8cdb9d5d, closes #497)

Features

v0.3.15 (2015-04-29)

Bug Fixes

  • headers:
    • Do not parse empty values in list headers. (093a29ba)
    • Fix formatting of 0 qualites and formatting of empty list header fields. (621ef521)

Features

  • client:
    • remove Clone requirement for NetworkStream in Client (60d92c29)
    • accept &String as Body in RequestBuilder (a2aefd9a)
    • accept &String for a Url in RequestBuilder (8bc179fb)
  • headers: Implement Content-Language header field (308880b4, closes #475)
  • net: add https_using_context for user-supplied SslContext (1a076d1b)
  • server: allow consumer to supply an SslContext (3a1a2427, closes #471)

Breaking Changes

  • This removes the trait IntoBody, and instead using Into<Body>, as it's more idiomatic. This will only have broken code that had custom implementations of IntoBody, and can be fixed by changing them to Into<Body>.

(a2aefd9a)

v0.3.14 (2015-04-18)

Bug Fixes

  • http: Adjust httparse Request and Response lifetimes. (76550fdb)

v0.3.13 (2015-04-17)

Bug Fixes

  • server: JoinHandle type parameter (c694b138)

Features

  • debug: add Debug impls for StatusClass, Server, and Listening (0fb92ee7)

v0.3.12 (2015-04-15)

Bug Fixes

  • server:
    • handle keep-alive closing (d9187713, closes #437)
    • join on thread when Listening drops (68d4d63c, closes #447)
    • Use thread::spawn instead of thread::scoped. (e8649567)

Features

  • http: Implement Debug for HttpReader/Writer. (2f606c88)
  • log: clean up logging (4f09b002)
  • net: make HttpStream implement Debug (7b7f9c25)

v0.3.11 (2015-04-15)

Bug Fixes

  • headers: Content-Encoding needs a hyphen. (ca2815ef)

Features

  • client: remove generic parameter for Connector (139a51f1, closes #379)

Breaking Changes

  • AccessControlAllowHeaders and AccessControlRequestHeaders values are case insensitive now. AccessControlAllowOrigin variants are now Any and Value to match the other headers.

(94f38950)

  • If-Match, If-None-Match and Vary item variant name changed to Items

(38d297b1)

  • Etag header field is now ETag header field

(4434ea6a)

  • For people using the default HttpConnector and Client, everything should continue to just work. If the Client has been used with a generic parameter, it should be removed.

    However, there were some breaking changes to the internals of NetworkConnectors. Specifically, they no longer return a NetworkStream, but instead a Into<Box<NetworkStream + Send>>. All implementations of NetworkStream should continue to just work, however.

    Possible breakages could come from the stricter usage of Send throughout the Client API.

(139a51f1)

v0.3.10 (2015-04-06)

Bug Fixes

  • README: Update to compile example against Rust beta (341f19d3)

v0.3.9 (2015-04-03)

Bug Fixes

  • headers: Add CowStr as a temporary hack to build on beta. (8e065563)

v0.3.8 (2015-04-02)

Bug Fixes

  • rustup: update to rust beta (0f5858f3)

Breaking Changes

  • Removed impl_header!() and impl_list_header!() macros, use new header!() macro.

(262c450f)

v0.3.7 (2015-03-31)

Bug Fixes

  • buffer: zero out new capacity when buffer grows (cfdabd70)

Features

  • entitytag: Add EntityTag comparison, make EntityTag safe to use (9c21f7f9)

v0.3.6 (2015-03-30)

Bug Fixes

  • buffer: get_buf to not return consumed part of buffer (04e3b565, closes #406)
  • rustup: get rid of slice pattern, add Reflect bounds (c9f2c841)

v0.3.5 (2015-03-28)

Bug Fixes

  • http: read more before triggering TooLargeError (cb59f609, closes #389)

v0.3.4 (2015-03-26)

Bug Fixes

  • rustup: static bounds required on Type definition, trivial_casts (eee7a85d)

v0.3.3 (2015-03-25)

Bug Fixes

  • rustup:
    • rustc 1.0.0-nightly (123a754cb 2015-03-24) (3e456f00)
    • 1.0.0-nightly (e2fa53e59 2015-03-20) (f547080d)

Features

  • headers: Implementing content-encoding header (2983e8de, closes #391)

v0.3.2 (2015-03-20)

Bug Fixes

  • benches: removed unused features (104d4903)
  • rustup:

Features

  • server: use SocketAddrs instead of Ipv4Addrs (5d7be77e)

v0.3.1 (2015-03-18)

Bug Fixes

  • header: Fix charset parsing bug. (5a6e176f)
  • headers: Fix overflow with empty cookies (99baaa10)
  • rustup: update to latest rustc (4fd8a6a9)

Features

  • server: add Expect 100-continue support (0b716943, closes #369)

Breaking Changes

  • Several public functions and types in the http module have been removed. They have been replaced with 2 methods that handle all of the http1 parsing.

(b87bb20f)

v0.3.0 (2015-03-03)

Features

  • headers:
    • add enum for Charset (180d9a92)
    • add AcceptCharset header (235089a1)
    • add q function to ease creating Quality values (d68773c7)
    • adds re-parsing ability when getting typed headers (df756871)
  • hyper: switch to std::io, std::net, and std::path. (0fd6fcd7, closes #347)

Breaking Changes

  • added requirement that all HeaderFormat implementations must also be fmt::Debug. This likely as easy as slapping #[derive(Debug)] on to any custom headers.

(df756871)

  • Check the docs. Everything was touched.

(0fd6fcd7)

v0.2.1 (2015-02-27)

Bug Fixes

  • rustup: str.split and associated type changes (1b6e6a04)

Features

  • headers: add remove_raw method and corresponding test (4f576780, closes #326)

v0.2.0 (2015-02-21)

Bug Fixes

  • headers: use $crate when referring to hyper modules on macros (e246c3ac, closes #323)
  • rustup:

Features

  • server: make AcceptorPool::accept() block and allow non'-static data (b0a72d80)

v0.1.13 (2015-02-17)

Bug Fixes

Features

  • header: Support arbitrary status codes (73978531)
  • headers:
  • server: Rewrite the accept loop into a custom thread pool. (3528fb9b)

Breaking Changes

  • This removes unregistered status codes from the enum. Use FromPrimitive methods to create them now. StatusCode and StatusClass can no longer be casted to u16, use ToPrimitive methods now. For example status.to_u16().unwrap() to get the status code number.

(73978531)

v0.1.12 (2015-02-13)

Bug Fixes

  • net: don't stop the server when an SSL handshake fails with EOF (55f12660)

Features

  • headers: Add If-None-Match header field (318b067a, closes #238)

v0.1.11 (2015-02-06)

Bug Fixes

  • readme: Make the README client example work (9b5d6aab)

Features

  • headers: add IfUnmodifiedSince header (b5543b67)

Breaking Changes

  • for any consumers of the Etag header, since the entity tag is now in a tuple.

(28fd5c81)

v0.1.10 (2015-02-03)

Bug Fixes

  • headers: add limit to maximum header size that should be parsed (f18a8fb7, closes #256)
  • rustup:
    • update FromStr (742081c8)
    • fix unused_feature warning in example server (05a3a6b7)
    • switch to unstable features (3af8b687)

v0.1.9 (2015-01-28)

Bug Fixes

  • headers: Don't display q if q=1 in quality item. (91df2441, closes #281)
  • rustup: update io import, Writer::write (f606b603)

Features

  • status: add is_<status_class>() methods to StatusCodes (2d55a22e)

v0.1.8 (2015-01-27)

Bug Fixes

  • headers:
    • make ConnectionHeader unicase (e06e7d9a)
    • make Protocol search websocket unicase (65c70180)
  • log: update to new logging levels (b002b6c3)

Features

Breaking Changes

  • Change header Cookie to Cookie

(92f43cf8)

v0.1.7 (2015-01-27)

Bug Fixes

  • rustup: update to newest fmt trait names and slice syntax (9e3c94d7)

Breaking Changes

  • Implementations of Header will need to adjust the header_name method. It no longer takes any arguments.

(8215889e)

v0.1.6 (2015-01-27)

Bug Fixes

  • headers: make Schemes, Basic, Protocol public (e43c35c1)

v0.1.5 (2015-01-27)

v0.1.4 (2015-01-27)

Bug Fixes

  • imports: Update TypeID import location to "any" (dd2534a6)

v0.1.3 (2015-01-27)

Features

  • server: add a deconstruct method to Request. (1014855f)

v0.1.2 (2015-01-27)

Bug Fixes

  • server: Increase MAX_HEADER_FIELD_LENGTH to 4k (54238b28)

Features

  • net:
    • Move SSL verification to unboxed closures (bca9a53c)
    • Allow more generic SSL verification () (af577851, closes #244)

0.1.1 (2015-01-13)

Features

  • server:: Add TLS/SSL support serverside (c6eef681, closes #1)

Bug Fixes

  • headers:
    • fix fmt_header outputs of several headers (aa266653, closes #246)
    • don't use Show to write UserAgent header (c8e334aa)