Documentation ¶ Index ¶ func HTTPDialContext(t testing.TB, handler http.Handler) func(context.Context, string, string) (net.Conn, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func HTTPDialContext ¶ func HTTPDialContext(t testing.TB, handler http.Handler) func(context.Context, string, string) (net.Conn, error) HTTPDialContext serves real HTTP (including WebSocket upgrades) over net.Pipe, allowing transport tests to run without permission to bind local TCP ports. Types ¶ This section is empty. Source Files ¶ View all Source files pipe_http.go Click to show internal directories. Click to hide internal directories.