Add an authority() method to folly::Uri.
authorStephane Sezer <sas@fb.com>
Mon, 23 Sep 2013 21:42:11 +0000 (14:42 -0700)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:43:06 +0000 (18:43 -0700)
commit464cc74d12be1772fb4846bf9a3c19b37024f6a7
tree9d336d6d7ba1cc45c68a9c55b49697eddce93674
parenta88ef0bed6c4b28a89d141e4349d4a2b16ed212d
Add an authority() method to folly::Uri.

Summary: facebook::strings::URL has an authority() method. Having the same thing for folly::Uri help converting users of the URL class. This method just takes username, password, host, and port, and builds a string in the form <username>:<password>@<host>:<port>.

Test Plan: None.

Reviewed By: rajat@fb.com

FB internal diff: D977450
folly/Uri.cpp
folly/Uri.h