DialHTTP creates a new RPC client that connects to an RPC server over HTTP.
(endpoint string)
| 84 | |
| 85 | // DialHTTP creates a new RPC client that connects to an RPC server over HTTP. |
| 86 | func DialHTTP(endpoint string) (*Client, error) { |
| 87 | return DialHTTPWithClient(endpoint, new(http.Client)) |
| 88 | } |
| 89 | |
| 90 | func (c *Client) sendHTTP(ctx context.Context, op *requestOp, msg interface{}) error { |
| 91 | hc := c.writeConn.(*httpConn) |
no test coverage detected