(ctx context.Context, req *http.Request, conn net.Conn)
| 108 | } |
| 109 | |
| 110 | func 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 | } |
no test coverage detected