actix / actix/actix-web

Change `HttpRequest::content_type` to return `Option<&str>`

Open
#3,797 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
24.8k
Forks
1.9k
Avg merge
23h 10m
Merged PRs (30d)
26

Description

There's not really any need for it to return an empty &str and `Option<&str>` is more idiomatic.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.