Example #1
0
func TestHeader(t *testing.T) {
	header := &Header{http.Header{}}
	test.HeaderTest(t, header)

	header.reset(http.Header{})
	assert.Len(t, header.Keys(), 0)
}
Example #2
0
func TestRequestHeader(t *testing.T) {
	header := &RequestHeader{&fast.RequestHeader{}}
	test.HeaderTest(t, header)

	header.reset(&fast.RequestHeader{})
	assert.Len(t, header.Keys(), 0)
}