Lines Matching refs:decodeIfBinary
36 func decodeIfBinary(out fmt.Stringer) string { func
65 if want, got := `{"url":"/path?foo=bar"}`+"\n", decodeIfBinary(out); want != got {
81 if want, got := `{"method":"POST"}`+"\n", decodeIfBinary(out); want != got {
98 if want, got := `{"request":"POST /path?foo=bar"}`+"\n", decodeIfBinary(out); want != got {
114 if want, got := `{"ip":"1.2.3.4"}`+"\n", decodeIfBinary(out); want != got {
130 if want, got := `{"ip":"2001:db8:a0b:12f0::1"}`+"\n", decodeIfBinary(out); want != got {
148 if want, got := `{"ua":"some user agent string"}`+"\n", decodeIfBinary(out); want != got {
166 if want, got := `{"referer":"http://foo.com/bar"}`+"\n", decodeIfBinary(out); want != got {
185 if want, got := fmt.Sprintf(`{"id":"%s"}`+"\n", id), decodeIfBinary(out); want != got {
205 …:"POST","request":"POST /path?foo=bar","url":"/path?foo=bar"}`+"\n", decodeIfBinary(out); want != …
269 …if want, got := `{"X-Forwarded-For":["proxy1,proxy2,proxy3"]}`+"\n", decodeIfBinary(out); want != …
292 got := decodeIfBinary(out)