toBuilder

Returns an HttpRequest.Builder with the same properties as this HttpRequest.

This method can be used when you need a builder that has the same properties as an existing HttpRequest, which you can then modify and use to build a new HttpRequest.

Return

HttpRequest.Builder with the same properties as this HttpRequest.