Add setPort() to folly::URI class.
authorWill Hodges <wch@fb.com>
Mon, 10 Mar 2014 17:15:35 +0000 (10:15 -0700)
committerDave Watson <davejwatson@fb.com>
Mon, 10 Mar 2014 20:51:14 +0000 (13:51 -0700)
commit86fd9acf3fd36e7c54b62bf476dd905803bd7d8d
tree2e9e891d334a1f12570e6ba06b1c721d31e919bb
parent85cf7e60fe9d846f1e151015dc8448ddefdfb0b3
Add setPort() to folly::URI class.

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
folly/Uri.h