MCPcopy Index your code
hub / github.com/devploit/nomore403 / attachHTTPReplay

Function attachHTTPReplay

cmd/requester.go:583–599  ·  view source on GitHub ↗
(result *Result, method, uri string, headers []header, body string, redirect bool, proxy *url.URL, timeout int)

Source from the content-addressed store, hash-verified

581}
582
583func 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
601func attachRawReplay(result *Result, method, uri, requestTarget string, headers []header, body string, timeout int) {
602 result.reproCurl = buildCurlCommand(method, uri, headers, body, false, nil)

Callers 15

requestDefaultFunction · 0.85
requestMethodsFunction · 0.85
requestHeadersFunction · 0.85
requestEndPathsFunction · 0.85
requestMidPathsFunction · 0.85
requestDoubleEncodingFunction · 0.85
requestUnicodeEncodingFunction · 0.85
requestPayloadPositionsFunction · 0.85
requestPathCaseSwitchingFunction · 0.85
requestHopByHopFunction · 0.85

Calls 2

buildCurlCommandFunction · 0.85
cloneHeadersFunction · 0.85

Tested by

no test coverage detected