Skip to content

Using non-null terminated strings as URLs #840

@ghost

Description

A good part of the library uses char const* and std::size_t pairs to determine how far ahead to read in the char buffer, but Server::Get doesn't. Could an overload be introduced, accepting a std::size_t as a second argument, determining the length of the string being passed as the URL?

Personally, I'm using a bunch of heap allocations and memcpy calls in order to create C-style, null terminated strings from my data before using Get.

Implementing this might be problematic, since I'm not sure is std::regex supports something like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions