HttpSession: Use Provider<PeerInfo> instead of just PeerInfo

When retrying an HTTP request, the same instance of the HttpSession will
be (re)used. By using Provider.get() we make sure to use the most recent
PeerInfo for the next retry. This adds support for a scenario where the
other peer node starts on a different host after being restarted.

Change-Id: Ib4e72612e5b1ff3a991c74d136f15dfcc64496a6
2 files changed
tree: d66e431633fa390821fa4e01bfe9e7b05f11d384
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. .mailmap
  6. BUCK