Home | History | Annotate | Download | only in http

Lines Matching defs:gzip

846                 .setBody(gzip("ABCABCABC".getBytes("UTF-8")))
847 .addHeader("Content-Encoding: gzip"));
855 assertContains(request.getHeaders(), "Accept-Encoding: gzip");
860 .setBody(gzip("ABCDEFGHIJKLMNOPQRSTUVWXYZ".getBytes("UTF-8")))
861 .addHeader("Content-Encoding: gzip"));
865 connection.addRequestProperty("Accept-Encoding", "gzip");
870 assertContains(request.getHeaders(), "Accept-Encoding: gzip");
896 * Test a bug where gzip input streams weren't exhausting the input stream,
903 responseOne.addHeader("Content-Encoding: gzip");
904 transferKind.setBody(responseOne, gzip("one (gzipped)".getBytes("UTF-8")), 5);
912 connection.addRequestProperty("Accept-Encoding", "gzip");
1929 public byte[] gzip(byte[] bytes) throws IOException {