Change `HttpRequest::content_type` to return `Option<&str>`
Author: Freyja-mothCreated Oct 9, 2025Updated Sep 7, 2026
There's not really any need for it to return an empty &str and `Option<&str>` is more idiomatic.
Source: actix/actix-web
There's not really any need for it to return an empty &str and `Option<&str>` is more idiomatic.
Source: actix/actix-web