Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
NewServer starts a new HTTP2 writer for testing purposes. This function helps to avoid issue https://github.com/golang/go/issues/22018
Usage:
func TestMyHandler(t *testing.T) { h := MyHandler{} server := h2test.NewServer(h) defer server.Close() // test stuff // ... }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.