go/src/net/http/sniff_test.go

var sniffTests

func TestDetectContentType(t *testing.T) {}

func TestServerContentTypeSniff(t *testing.T) {}

func testServerContentTypeSniff(t *testing.T, mode testMode) {}

// Issue 5953: shouldn't sniff if the handler set a Content-Type header,
// even if it's the empty string.
func TestServerIssue5953(t *testing.T) {}

func testServerIssue5953(t *testing.T, mode testMode) {}

type byteAtATimeReader

func (b *byteAtATimeReader) Read(p []byte) (n int, err error) {}

func TestContentTypeWithVariousSources(t *testing.T) {}

func testContentTypeWithVariousSources(t *testing.T, mode testMode) {}

func TestSniffWriteSize(t *testing.T) {}

func testSniffWriteSize(t *testing.T, mode testMode) {}