Skip to content

Use ascii crate for string values inside HeaderValue, HeaderName types #313

Open
@yoshuawuyts

Description

@yoshuawuyts

We could remove almost every instance of unsafe in our codebase by replacing the use of String in HeaderName and HeaderValue with ascii::AsciiString instead. Implementing this shouldn't be too hard, but code-wise it's a fair few lines that need changing.

This wouldn't change anything in our API signatures either, assuming we don't have any bugs in how we handle ASCII today. @brightly-salty would you be interested in perhaps trying to tackle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions