func TestS3H1RespPhaseSetHeader(t *testing.T) {
	st := newServerTesterTLS([]string{"--npn-list=spdy/3.1", "--mruby-file=" + testDir + "/resp-set-header.rb"}, t, noopHandler)
	defer st.Close()

	res, err := st.spdy(requestParam{
		name: "TestS3H1RespPhaseSetHeader",
	})
	if err != nil {
		t.Fatalf("Error st.spdy() = %v", err)
	}

	if got, want := res.status, 200; got != want {
		t.Errorf("status = %v; want %v", got, want)
	}

	if got, want := res.header.Get("alpha"), "bravo"; got != want {
		t.Errorf("alpha = %v; want %v", got, want)
	}
}
// TestS3H1RespPhaseSetHeader tests mruby response phase hook modifies
// response header fields.

TestS3H1RespPhaseSetHeader tests mruby response phase hook modifies
response header fields.
// TestS3H1RespPhaseSetHeader tests mruby response phase hook modifies // response header fields .
func TestS3H1RespPhaseSetHeader(t *testing.T) {
	st := newServerTesterTLS([]string{"--npn-list=spdy/3.1", "--mruby-file=" + testDir + "/resp-set-header.rb"}, t, noopHandler)
	defer st.Close()
	res, err := st.spdy(requestParam{
		name: "TestS3H1RespPhaseSetHeader",
	})
	if err != nil {
		t.Fatalf("Error st.spdy() = %v", err)
	}
	if got, want := res.status, 200; got != want {
		t.Errorf("status = %v; want %v", got, want)
	}
	if got, want := res.header.Get("alpha"), "bravo"; got != want {
		t.Errorf("alpha = %v; want %v", got, want)
	}
}
func TestS3H1RespPhaseSetHeader ( t * testing . T ) { st := newServerTesterTLS ( [ ] string { " " , " " + testDir + " " } , t , noopHandler ) defer st . Close ( ) res , err := st . spdy ( requestParam { name : " " , } ) if err != nil { t . Fatalf ( " " , err ) } if got , want := res . status , 200 ; got != want { t . Errorf ( " " , got , want ) } if got , want := res . header . Get ( " " ) , " " ; got != want { t . Errorf ( " " , got , want ) } }
TestS3H1RespPhaseSetHeader tests mruby response phase hook modifies
response header fields.
TestS3H1RespPhaseSetHeader tests mruby response phase hook modifies response header fields .