Skip to content

Release 0.3.4

Compare
Choose a tag to compare
@danwilliams danwilliams released this 07 Oct 10:27
· 133 commits to master since this release

Added

  • Implemented From<Json> for http::UnpackedResponseBody
  • Implemented custom Serialize and Deserialize implementations for http::UnpackedResponseBody
  • Added http::ContentType enum to specify http:UnpackedResponseBody content type
  • Added content_type(), set_content_type(), is_binary(), is_text(), to_base64(), and from_base64() to http::UnpackedResponseBody

Changed

  • Updated Debug, Display, Serialize, and Deserialize implementations for http::UnpackedResponseBody to be content-type aware
  • Updated http::UnpackedResponseBody::new() to accept any types that From has been implemented for
  • Changed http::UnpackedResponseBody from tuple struct to standard struct
  • Improved performance in http::UnpackedResponseBody::from()