We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The class HTTPRequest has two problems:
What I'm proposing here is to refactor this class and create a helper class named URI for the resource that resembles something like this:
struct Uri { Uri(std::string uri); ~Uri(void); std::string toStr(void); std::string pathWithRoot(std::string root); // std::string m_target; std::string m_scheme; std::string m_host; std::string m_path; std::string m_query; };
and HTTPResponse (only the modifications)
// (....) HTTPResponse(std::string req_str); // (....) shared_ptr<Uri> m_resource; // (....)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The class HTTPRequest has two problems:
What I'm proposing here is to refactor this class and create a helper class named URI for the resource that resembles something like this:
and HTTPResponse (only the modifications)
The text was updated successfully, but these errors were encountered: