- Fixed the
+
character in the query string not being replaced with a space as it should. Request::data()
now returns anOption<impl Read>
instead of aVec<u8>
. Ifdata()
is called twice, the second call will returnNone
.RouteError
has been removed. You are now encouraged to return aResponse
everywhere instead of aResult<Response, RouteError>
.- The
try_or_400!
,find_route!
andassert_or_4OO!
macros and thematch_assets
function have been adjusted for the previous change. - Added a
try_or_404!
macro similar totry_or_400!
. - In the case of a panic, the response with status code 500 that the server answers now contains a small text in its body, indicating the user that an internal server error occured.
- Added
Response::empty_400()
,Response::empty_404()
,Response::success()
andResponse::error()
.