Skip to content

v0.1.12

Pre-release
Pre-release
Compare
Choose a tag to compare
@emrecancorapci emrecancorapci released this 23 Sep 22:56
· 36 commits to main since this release

Changes

  • Add get_status function to make StatusCode accessible
  • Add doctests to Request module methods
  • Add path parameter to get, post, put patch, delete methods in Router module
  • Add get_query_param method to Request for handling query parameters easily
  • Update insert_header to set_header
  • Update update_body to set_body
  • Update add_local to set_local
  • Update is_err to is_error
  • Update get_header return type from Option<&String> to Option<&str>
  • Update get_path return type from &String to &str
  • Update name of get_queries method to get_query_params
  • Update get_method to make method public
  • Update request body parser to handle body better
  • Update request parser
  • Update Request module to improve documentation

Fixes

  • Fix query parameter parsing for routes that doesn't have parameters

  • Bump serde_json from 1.0.127 to 1.0.128 by @dependabot in #16