MCPcopy Index your code
hub / github.com/cortexlabs/cortex / HTTPPostNoBody

Function HTTPPostNoBody

cli/cluster/lib_http_client.go:74–80  ·  view source on GitHub ↗
(operatorConfig OperatorConfig, endpoint string, qParams ...map[string]string)

Source from the content-addressed store, hash-verified

72}
73
74func HTTPPostNoBody(operatorConfig OperatorConfig, endpoint string, qParams ...map[string]string) ([]byte, error) {
75 req, err := operatorRequest(operatorConfig, http.MethodPost, endpoint, nil, qParams...)
76 if err != nil {
77 return nil, err
78 }
79 return makeOperatorRequest(operatorConfig, req)
80}
81
82func HTTPDelete(operatorConfig OperatorConfig, endpoint string, qParams ...map[string]string) ([]byte, error) {
83 req, err := operatorRequest(operatorConfig, http.MethodDelete, endpoint, nil, qParams...)

Callers 1

RefreshFunction · 0.85

Calls 2

operatorRequestFunction · 0.85
makeOperatorRequestFunction · 0.85

Tested by

no test coverage detected