Skip to content

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

@Sightem

Description

@Sightem
Contributor

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Sightem

      Issue actions

        Use std::string_view in CookieParser::before_handle · Issue #1023 · CrowCpp/Crow