toBuilder

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

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

Return

an HttpResponse.Builder with the same properties as this HttpResponse.