Lines Matching refs:decodeIfBinary
21 func decodeIfBinary(out *bytes.Buffer) string { func
54 if want, got := `{"url":"/path?foo=bar"}`+"\n", decodeIfBinary(out); want != got {
70 if want, got := `{"method":"POST"}`+"\n", decodeIfBinary(out); want != got {
87 if want, got := `{"request":"POST /path?foo=bar"}`+"\n", decodeIfBinary(out); want != got {
103 if want, got := `{"ip":"1.2.3.4"}`+"\n", decodeIfBinary(out); want != got {
119 if want, got := `{"ip":"2001:db8:a0b:12f0::1"}`+"\n", decodeIfBinary(out); want != got {
137 if want, got := `{"ua":"some user agent string"}`+"\n", decodeIfBinary(out); want != got {
155 if want, got := `{"referer":"http://foo.com/bar"}`+"\n", decodeIfBinary(out); want != got {
177 if want, got := fmt.Sprintf(`{"id":"%s"}`+"\n", id), decodeIfBinary(out); want != got {
198 …if want, got := `{"reqID":"514bbe5bb5251c92bd07a9846f4a1ab6"}`+"\n", decodeIfBinary(out); want != …
215 …:"POST","request":"POST /path?foo=bar","url":"/path?foo=bar"}`+"\n", decodeIfBinary(out); want != …