MCPcopy
hub / github.com/projectdiscovery/subfinder / SimpleGet

Method SimpleGet

pkg/subscraping/agent.go:67–69  ·  view source on GitHub ↗

SimpleGet makes a simple GET request to a URL

(ctx context.Context, getURL string)

Source from the content-addressed store, hash-verified

65
66// SimpleGet makes a simple GET request to a URL
67func (s *Session) SimpleGet(ctx context.Context, getURL string) (*http.Response, error) {
68 return s.HTTPRequest(ctx, http.MethodGet, getURL, "", map[string]string{}, nil, BasicAuth{})
69}
70
71// Post makes a POST request to a URL with extended parameters
72func (s *Session) Post(ctx context.Context, postURL, cookies string, headers map[string]string, body io.Reader) (*http.Response, error) {

Callers 15

fetchMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
enumerateMethod · 0.80
RunMethod · 0.80

Calls 1

HTTPRequestMethod · 0.95

Tested by

no test coverage detected