MCPcopy Index your code
hub / github.com/cortexproject/cortex / PostRequest

Function PostRequest

integration/e2e/util.go:93–98  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

91}
92
93func PostRequest(url string) (*http.Response, error) {
94 const timeout = 1 * time.Second
95
96 client := &http.Client{Timeout: timeout}
97 return client.Post(url, "", strings.NewReader(""))
98}
99
100// TimeToMilliseconds returns the input time as milliseconds, using the same
101// formula used by Prometheus in order to get the same timestamp when asserting

Callers 1

TestIndexAPIEndpointFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestIndexAPIEndpointFunction · 0.74