RFR: 8252304: Seed an HttpRequest.Builder from an existing HttpRequest

Patrick Concannon pconcannon at openjdk.java.net
Wed Nov 4 15:00:02 UTC 2020


Hi,

Could someone please review our code for JDK-8252304: 'Seed an HttpRequest.Builder from an existing HttpRequest'?

This RFR proposes a new factory method for creating a new `HttpRequest` builder from an existing `HttpRequest`.
This method can be used to build a new request equivalent to the given request, but with different attributes. For instance, it will allow the user to take an existing request and add or change a particular header, provide a new `URI`, etc.


Kind regards,
Patrick & Chris

-------------

Commit messages:
 - Merge remote-tracking branch 'origin/master' into JDK-8252304
 - 8252304: Seed an HttpRequest.Builder from an existing HttpRequest

Changes: https://git.openjdk.java.net/jdk/pull/1059/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1059&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8252304
  Stats: 314 lines in 2 files changed: 314 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1059.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1059/head:pull/1059

PR: https://git.openjdk.java.net/jdk/pull/1059


More information about the net-dev mailing list