(req *http.Request)
| 336 | } |
| 337 | |
| 338 | func (rt *chainRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { |
| 339 | resp, err := rt.rt.RoundTrip(req) |
| 340 | if resp != nil { |
| 341 | if resp.Header == nil { |
| 342 | resp.Header = make(http.Header) |
| 343 | } |
| 344 | resp.Header.Set("Value", resp.Header.Get("Value")+rt.value) |
| 345 | } |
| 346 | return resp, err |
| 347 | } |
| 348 | |
| 349 | func TestWrappers(t *testing.T) { |
| 350 | resp1 := &http.Response{} |