Summary:
Add setPort() method to URI class for easy port replacement in
URIs.
Facebook:
Perform port replacement in WriteProcessor.cpp in a way that
supports URI schemes. Add setPort() method to URI class to replace
the port number in the authority portion of the URI.
Test Plan: Test in debugger for dfsrouter changes.
Reviewed By: tudorb@fb.com
FB internal diff:
D1209120
std::string str() const { return toString<std::string>(); }
fbstring fbstr() const { return toString<fbstring>(); }
+ void setPort(uint16_t port) {port_ = port;}
+
private:
fbstring scheme_;
fbstring username_;