MCPcopy
hub / github.com/elastic/go-elasticsearch / newRequest

Function newRequest

esapi/esapi.request.go:40–42  ·  view source on GitHub ↗

newRequest creates an HTTP request.

(method, path string, body io.Reader)

Source from the content-addressed store, hash-verified

38
39// newRequest creates an HTTP request.
40func newRequest(method, path string, body io.Reader) (*http.Request, error) {
41 return http.NewRequest(method, path, body)
42}

Callers 15

DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85
DoMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestAPIRequestFunction · 0.68