(Builder builder)
| 34 | private final ProtocolVersion protocolVersion; |
| 35 | |
| 36 | private Response(Builder builder) { |
| 37 | checkState(builder.request != null, "original request is required"); |
| 38 | this.status = builder.status; |
| 39 | this.request = builder.request; |
| 40 | this.reason = builder.reason; // nullable |
| 41 | this.headers = caseInsensitiveCopyOf(builder.headers); |
| 42 | this.body = builder.body; // nullable |
| 43 | this.protocolVersion = builder.protocolVersion; |
| 44 | } |
| 45 | |
| 46 | public Builder toBuilder() { |
| 47 | return new Builder(this); |
nothing calls this directly
no test coverage detected