Skip to content

Use std::string_view in CookieParser::before_handle #1023

Open
@Sightem

Description

@Sightem

The current CookieParser::before_handle implementation creates several std::string objects during the parsing of the Cookie header value. This can be optimized by using std::string_view to slice the header string directly.

Addresses the todo at:

// TODO(dranikpg): remove copies, use string_view with c++17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions