Lines Matching refs:res

24 	res, err := st.http1(requestParam{
31 if got, want := res.status, http.StatusOK; got != want {
42 res, err := st.http1(requestParam{
52 if got, want := res.status, http.StatusOK; got != want {
68 res, err := st.http1(requestParam{
76 if got, want := res.status, http.StatusNotImplemented; got != want {
118 // res, err := st.http1(requestParam{
125 // if got := res.status; got != want {
139 res, err := st.http1(requestParam{
146 if got, want := res.status, http.StatusOK; got != want {
152 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
167 res, err := st.http1(requestParam{
174 if got, want := res.status, http.StatusOK; got != want {
180 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
190 res, err := st.http1(requestParam{
197 if got, want := res.status, http.StatusOK; got != want {
207 res, err = st.http1(requestParam{
214 if got, want := res.status, http.StatusOK; got != want {
218 if got, want := res.connClose, true; got != want {
219 t.Errorf("res.connClose: %v; want %v", got, want)
240 res, err := st.http1(requestParam{
246 if got, want := res.status, http.StatusOK; got != want {
249 if got, want := res.header.Get("request-host"), st.backendHost; got != want {
416 res, err := st.http1(requestParam{
426 if got, want := res.status, http.StatusOK; got != want {
427 t.Errorf("res.status: %v; want %v", got, want)
446 res, err := st.http1(requestParam{
453 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
470 res, err := st.http1(requestParam{
476 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
493 res, err := st.http1(requestParam{
504 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
522 res := st.websocket(requestParam{
526 if got, want := res.body, content; !bytes.Equal(got, want) {
545 res, err := st.http1(requestParam{
552 if got, want := res.status, http.StatusOK; got != want {
569 res, err := st.http1(requestParam{
576 if got, want := res.status, http.StatusNotFound; got != want {
587 if got, want := res.header.Get(tt.k), tt.v; got != want {
592 if got, want := string(res.body), "Hello World from req"; got != want {
676 res, err := st.http1(requestParam{
683 if got, want := res.status, http.StatusOK; got != want {
687 if got, want := res.header.Get("alpha"), "bravo"; got != want {
701 res, err := st.http1(requestParam{
708 if got, want := res.status, http.StatusNotFound; got != want {
719 if got, want := res.header.Get(tt.k), tt.v; got != want {
724 if got, want := string(res.body), "Hello World from resp"; got != want {
738 res, err := st.http1(requestParam{
745 if got, want := res.status, http.StatusPermanentRedirect; got != want {
748 if got, want := res.header.Get("location"), "https://127.0.0.1/"; got != want {
765 res, err := st.http1(requestParam{
773 if got, want := res.status, http.StatusPermanentRedirect; got != want {
776 if got, want := res.header.Get("location"), "https://127.0.0.1:8443/foo?bar"; got != want {
787 res, err := st.http1(requestParam{
794 if got, want := res.status, http.StatusOK; got != want {
795 t.Errorf("res.status: %v; want %v", got, want)
798 res, err = st.http1(requestParam{
805 if got, want := res.status, http.StatusOK; got != want {
806 t.Errorf("res.status: %v; want %v", got, want)
870 // res, err := st.http1(requestParam{
877 // if got := res.status; got != want {
990 res, err := st.http1(requestParam{
999 if got, want := res.status, http.StatusOK; got != want {
1018 res, err := st.http1(requestParam{
1024 if got, want := res.header.Get("Via"), "2 nghttpx"; got != want {
1044 res, err := st.http1(requestParam{
1053 if got, want := res.header.Get("Via"), "bar, 2 nghttpx"; got != want {
1073 res, err := st.http1(requestParam{
1082 if got, want := res.header.Get("Via"), "bar"; got != want {
1102 res, err := st.http1(requestParam{
1109 if got, want := res.status, http.StatusNotFound; got != want {
1120 if got, want := res.header.Get(tt.k), tt.v; got != want {
1125 if got, want := string(res.body), "Hello World from req"; got != want {
1142 res, err := st.http1(requestParam{
1149 if got, want := res.status, http.StatusNotFound; got != want {
1160 if got, want := res.header.Get(tt.k), tt.v; got != want {
1165 if got, want := string(res.body), "Hello World from resp"; got != want {
1184 res, err := st.http1(requestParam{
1193 if got, want := res.status, http.StatusOK; got != want {
1211 res, err := st.http1(requestParam{
1223 if got, want := res.status, http.StatusOK; got != want {
1224 t.Errorf("res.status: %v; want %v", got, want)
1228 err = json.Unmarshal(res.body, &apiResp)
1253 res, err := st.http1(requestParam{
1265 if got, want := res.status, http.StatusOK; got != want {
1266 t.Errorf("res.status: %v; want %v", got, want)
1270 err = json.Unmarshal(res.body, &apiResp)
1295 res, err := st.http1(requestParam{
1307 if got, want := res.status, http.StatusMethodNotAllowed; got != want {
1308 t.Errorf("res.status: %v; want %v", got, want)
1312 err = json.Unmarshal(res.body, &apiResp)
1336 res, err := st.http1(requestParam{
1344 if got, want := res.status, http.StatusOK; got != want {
1345 t.Errorf("res.status: %v; want = %v", got, want)
1349 d := json.NewDecoder(bytes.NewBuffer(res.body))
1379 res, err := st.http1(requestParam{
1391 if got, want := res.status, http.StatusNotFound; got != want {
1392 t.Errorf("res.status: %v; want %v", got, want)
1396 err = json.Unmarshal(res.body, &apiResp)
1420 res, err := st.http1(requestParam{
1427 if got, want := res.status, http.StatusOK; got != want {
1428 t.Errorf("res.status: %v; want %v", got, want)
1547 res, err := st.http1(requestParam{
1553 if got, want := res.status, http.StatusBadGateway; got != want {
1554 t.Errorf("res.status: %v; want %v", got, want)