Add setPort() to folly::URI class.
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


tempbottle/folly,cole14/folly,renyinew/folly,gavioto/folly,facebook/folly,SeanRBurton/folly,lifei/folly,constantine001/folly,SammyK/folly,CJstar/folly,ykarlsbrun/folly,tempbottle/folly,sonnyhu/folly,Orvid/folly,bsampath/folly,bsampath/folly,PPC64/folly,CJstar/folly,ykarlsbrun/folly,facebook/folly,yangjin-unique/folly,loversInJapan/folly,mqeizi/folly,guker/folly,gaoyingie/folly,bikong2/folly,shaobz/folly,leolujuyi/folly,loversInJapan/folly,nickhen/folly,project-zerus/folly,stonegithubs/folly,renyinew/folly,zhiweicai/folly,cppfool/folly,SammyK/folly,bsampath/folly,fw1121/folly,mqeizi/folly,nickhen/folly,clearlinux/folly,nickhen/folly,project-zerus/folly,cppfool/folly,PPC64/folly,facebook/folly,project-zerus/folly,hongliangzhao/folly,romange/folly,yangjin-unique/folly,loverszhaokai/folly,bobegir/folly,guker/folly,bsampath/folly,raphaelamorim/folly,clearlylin/folly,bobegir/folly,lifei/folly,yangjin-unique/folly,upsoft/folly,PPC64/folly,zhiweicai/folly,cppfool/folly,gaoyingie/folly,fw1121/folly,ykarlsbrun/folly,CJstar/folly,colemancda/folly,Hincoin/folly,stonegithubs/folly,constantine001/folly,SeanRBurton/folly,sakishum/folly,xzmagic/folly,shaobz/folly,cole14/folly,bobegir/folly,cppfool/folly,tempbottle/folly,doctaweeks/folly,rklabs/folly,KSreeHarsha/folly,cppfool/folly,cole14/folly,romange/folly,raphaelamorim/folly,chjp2046/folly,wildinto/folly,clearlinux/folly,chjp2046/folly,guker/folly,leolujuyi/folly,PoisonBOx/folly,shaobz/folly,fw1121/folly,bowlofstew/folly,arg0/folly,bikong2/folly,theiver9827/folly,kernelim/folly,constantine001/folly,stonegithubs/folly,xzmagic/folly,guker/folly,loversInJapan/folly,juniway/folly,bikong2/folly,rklabs/folly,facebook/folly,zhiweicai/folly,brunomorishita/folly,chjp2046/folly,CJstar/folly,KSreeHarsha/folly,charsyam/folly,leolujuyi/folly,clearlinux/folly,facebook/folly,cole14/folly,renyinew/folly,loversInJapan/folly,SammyK/folly,Hincoin/folly,Eagle-X/folly,stonegithubs/folly,gaoyingie/folly,juniway/folly,ykarlsbrun/folly,PPC64/folly,gavioto/folly,sonnyhu/folly,bsampath/folly,reddit/folly,fw1121/folly,theiver9827/folly,Eagle-X/folly,upsoft/folly,hongliangzhao/folly,floxard/folly,doctaweeks/folly,clearlylin/folly,Eagle-X/folly,brunomorishita/folly,clearlylin/folly,clearlylin/folly,bobegir/folly,upsoft/folly,alexst07/folly,PoisonBOx/folly,doctaweeks/folly,brunomorishita/folly,PoisonBOx/folly,reddit/folly,theiver9827/folly,arg0/folly,charsyam/folly,juniway/folly,wildinto/folly,loverszhaokai/folly,Hincoin/folly,mqeizi/folly,chjp2046/folly,raphaelamorim/folly,constantine001/folly,xzmagic/folly,kernelim/folly,bowlofstew/folly,zhiweicai/folly,tomhughes/folly,Orvid/folly,sonnyhu/folly,tomhughes/folly,romange/folly,tomhughes/folly,colemancda/folly,gavioto/folly,kernelim/folly,guker/folly,hongliangzhao/folly,PoisonBOx/folly,yangjin-unique/folly,SeanRBurton/folly,bowlofstew/folly,brunomorishita/folly,clearlinux/folly,upsoft/folly,CJstar/folly,Eagle-X/folly,colemancda/folly,alexst07/folly,SammyK/folly,alexst07/folly,theiver9827/folly,renyinew/folly,clearlinux/folly,brunomorishita/folly,sakishum/folly,KSreeHarsha/folly,lifei/folly,kernelim/folly,bowlofstew/folly,Orvid/folly,xzmagic/folly,floxard/folly,tempbottle/folly,ykarlsbrun/folly,lifei/folly,cole14/folly,tomhughes/folly,nickhen/folly,leolujuyi/folly,wildinto/folly,SeanRBurton/folly,rklabs/folly,romange/folly,shaobz/folly,floxard/folly,mqeizi/folly,KSreeHarsha/folly,romange/folly,sakishum/folly,doctaweeks/folly,xzmagic/folly,lifei/folly,Orvid/folly,yangjin-unique/folly,zhiweicai/folly,tempbottle/folly,Eagle-X/folly,clearlylin/folly,gaoyingie/folly,kernelim/folly,hongliangzhao/folly,charsyam/folly,gavioto/folly,shaobz/folly,bikong2/folly,alexst07/folly,charsyam/folly,tomhughes/folly,SammyK/folly,leolujuyi/folly,loverszhaokai/folly,gavioto/folly,juniway/folly,rklabs/folly,juniway/folly,KSreeHarsha/folly,floxard/folly,mqeizi/folly,Hincoin/folly,PPC64/folly,loverszhaokai/folly,rklabs/folly,reddit/folly,fw1121/folly,upsoft/folly,raphaelamorim/folly,reddit/folly,PoisonBOx/folly,nickhen/folly,alexst07/folly,Orvid/folly,constantine001/folly,arg0/folly,project-zerus/folly,gaoyingie/folly,project-zerus/folly,sonnyhu/folly,SeanRBurton/folly,arg0/folly,hongliangzhao/folly,arg0/folly,wildinto/folly,bikong2/folly,doctaweeks/folly,loversInJapan/folly,raphaelamorim/folly,reddit/folly,bobegir/folly,bowlofstew/folly,sakishum/folly,colemancda/folly,wildinto/folly,Hincoin/folly,colemancda/folly,floxard/folly,loverszhaokai/folly,sonnyhu/folly,renyinew/folly,theiver9827/folly,sakishum/folly,chjp2046/folly,stonegithubs/folly