MCPcopy
hub / github.com/grafana/dskit / NewHTTPClient

Function NewHTTPClient

httpgrpc/httpgrpc.pb.go:414–416  ·  view source on GitHub ↗
(cc *grpc.ClientConn)

Source from the content-addressed store, hash-verified

412}
413
414func NewHTTPClient(cc *grpc.ClientConn) HTTPClient {
415 return &hTTPClient{cc}
416}
417
418func (c *hTTPClient) Handle(ctx context.Context, in *HTTPRequest, opts ...grpc.CallOption) (*HTTPResponse, error) {
419 out := new(HTTPResponse)

Callers 3

NewClientFunction · 0.92
TestOTelTracingFunction · 0.92
TestHTTPGRPCTracingFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestOTelTracingFunction · 0.74
TestHTTPGRPCTracingFunction · 0.74