Skip to content

Refactor the URI class #710

@jviotti

Description

@jviotti

This is a master-issue for collecting requirements for improving the current URI class, reduce its dependency on uriparser, and prepare it for extracting it outside of this project:

auto encode_character(const char character, std::ostream &stream) -> void;
auto encode_string(std::istream &stream, std::ostream &output, const std::set<char> &whitelist) -> void;
auto encode_string(std::istream &stream, std::ostream &output) -> void;
auto decode_character(std::istream &stream, const std::uint64_t column = 0) -> char;
auto decode_string(std::istream &stream, std::ostream &output, const std::uint64_t column = 0) -> void;

On uriparser:

  • Stop storing a UriUriA struct. Parse on the constructor and extract every component as a separate private member on the class, and operate on those from then on. If needed, construct back to UriUriA on the spot

Metadata

Metadata

Assignees

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