(result *Result, method, uri string, headers []header, body string, redirect bool, proxy *url.URL, timeout int)
| 581 | } |
| 582 | |
| 583 | func attachHTTPReplay(result *Result, method, uri string, headers []header, body string, redirect bool, proxy *url.URL, timeout int) { |
| 584 | result.reproCurl = buildCurlCommand(method, uri, headers, body, redirect, proxy) |
| 585 | proxyValue := "" |
| 586 | if proxy != nil { |
| 587 | proxyValue = proxy.String() |
| 588 | } |
| 589 | result.replay = &ReplaySpec{ |
| 590 | kind: "http", |
| 591 | method: method, |
| 592 | uri: uri, |
| 593 | headers: cloneHeaders(headers), |
| 594 | body: body, |
| 595 | redirect: redirect, |
| 596 | proxy: proxyValue, |
| 597 | timeout: timeout, |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | func attachRawReplay(result *Result, method, uri, requestTarget string, headers []header, body string, timeout int) { |
| 602 | result.reproCurl = buildCurlCommand(method, uri, headers, body, false, nil) |
no test coverage detected