Skip to content

v0.10.0

Compare
Choose a tag to compare
@yoshuawuyts yoshuawuyts released this 05 Jun 16:41

Docs

This release updates tide's Request and Response types to match http_types's Request and Response, a new Server::listen_unix method to listen on Unix Domain Sockets, and the ability to return json! literals directly from endpoints.

Added

  • Added Server::listen_unix #531
  • Added Request::peer_addr #530
  • Added Request::local_addr #530
  • Added Request::remote #537
  • Added Request::host #537
  • Added Request::header_mut #537
  • Added Request::append_header #537
  • Added Request::remove_header #537
  • Added Request::iter #537
  • Added Request::iter_mut #537
  • Added Request::header_names #537
  • Added Request::header_values #537
  • Added Request::query #537
  • Added Request::content_type #537
  • Added warning about domain/path inconsistencies to remove_cookie #533
  • Added an optional name method to Middleware #545
  • Added AsRef/AsMut<Headers> for Request/Response #553
  • Added Request::take_body #550
  • Added Response::swap_body #562
  • Added Response::iter #550
  • Added Response::iter_mut #550
  • Added Response::header_names #550
  • Added Response::header_values #550
  • Added Response::content_type #550
  • Added Response::set_content_type #550
  • Added Response::header_mut #562
  • Added tide::{After, Before} middleware constructors #556
  • Added support for returning JSON literals from endpoints #523
  • Response::new now accepts u16 as well as StatusCode as arguments #562
  • Added a new convert submodule which holds various conversion-related types, including serde #564

Changed

  • Renamed Request::uri to Request::url #537
  • Request::body_bytes now returns tide::Result #537
  • Request::body_string now returns tide::Result #537
  • Request::body_json now returns tide::Result #537
  • Request::body_form now returns tide::Result #537
  • Request::set_ext no longer takes and returns Self #537
  • Use http_types::mime instead of the mime crate #536 -
  • Renamed Reponse::set_cookie to Response::insert_cookie #562
  • Various Response methods no longer return Self #562
  • Renamed Response::set_header to Response::insert_header #562
  • Renamed Reponse::set_ext to Response::insert_ext #562

Removed

  • Removed Response::redirect in favor of tide::Redirect #562
  • Removed Response::{body_string, body_form, body_json, body} in favor of Response::set_body #562

Fixed

  • Update docs from Request::local to Request::ext #539
  • Creating a middleware directly from a function is now possible again #545
  • Fixed wildcard tests #518

Internal

  • Fix unix tests #552
  • Update http-types to 2.0.1 #537
  • Update async-sse to v3.0.0 #559
  • Use query from http_types #555
  • Fix tests on master #560
  • Remove unused serde_qs dependency #569
  • Uncomment and fix response tests #516