MCPcopy
hub / github.com/grpc/grpc-go / sendHTTPRequest

Function sendHTTPRequest

internal/transport/proxy.go:110–116  ·  view source on GitHub ↗
(ctx context.Context, req *http.Request, conn net.Conn)

Source from the content-addressed store, hash-verified

108}
109
110func sendHTTPRequest(ctx context.Context, req *http.Request, conn net.Conn) error {
111 req = req.WithContext(ctx)
112 if err := req.Write(conn); err != nil {
113 return fmt.Errorf("failed to write the HTTP request: %v", err)
114 }
115 return nil
116}

Callers 1

doHTTPConnectHandshakeFunction · 0.85

Calls 2

WriteMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected