package dataplane import "net/http" // WithHTTP gives the Client another HTTP client, so a test can send its // requests to an in-memory server on the fake clock of testing/synctest. func (c *Client) WithHTTP(h *http.Client) *Client { c.http = h return c }