web-v4.8.0

actix/actix-webweb-v4.8.0Jun 19, 2024by robjtede

AI Summary

This update adds an HTML responder, a method for retrieving full request URLs, and fixes issues related to IPv6 addresses and status codes.

Key Highlights

  • Added `web::Html` responder type.
  • Added `HttpRequest::full_url()` method to get the complete request URL.
  • Fixed handling of IPv6 addresses in `ConnectionInfo::realip_remote_addr()`.
  • Fixed `UrlencodedError::ContentType` to return a 415 status code.
  • Applied `max_connection_rate` setting for rustls v0.22 and v0.23.

New Features

  • Added `web::Html` responder.
  • Added `HttpRequest::full_url()` method.

Full Release Notes

### Added

- Add `web::Html` responder.
- Add `HttpRequest::full_url()` method to get the complete URL of the request.

### Fixed

- Always remove port from return value of `ConnectionInfo::realip_remote_addr()` when handling IPv6 addresses. from the `Forwarded` header.
- The `UrlencodedError::ContentType` variant (relevant to the `Form` extractor) now uses the 415 (Media Type Unsupported) status code in it's `ResponseError` implementation.
- Apply `HttpServer::max_connection_rate()` setting when using rustls v0.22 or v0.23.