Lines Matching refs:TransferKind

301     testRequestBodySurvivesRetries(TransferKind.FIXED_LENGTH);
305 testRequestBodySurvivesRetries(TransferKind.CHUNKED);
309 testRequestBodySurvivesRetries(TransferKind.END_OF_STREAM);
312 private void testRequestBodySurvivesRetries(TransferKind transferKind) throws Exception {
455 doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE);
459 doUpload(TransferKind.CHUNKED, WriteKind.SMALL_BUFFERS);
463 doUpload(TransferKind.CHUNKED, WriteKind.LARGE_BUFFERS);
467 doUpload(TransferKind.FIXED_LENGTH, WriteKind.BYTE_BY_BYTE);
471 doUpload(TransferKind.FIXED_LENGTH, WriteKind.SMALL_BUFFERS);
475 doUpload(TransferKind.FIXED_LENGTH, WriteKind.LARGE_BUFFERS);
478 private void doUpload(TransferKind uploadKind, WriteKind writeKind) throws Exception {
487 if (uploadKind == TransferKind.CHUNKED) {
508 if (uploadKind == TransferKind.CHUNKED) {
1096 testMarkAndReset(TransferKind.FIXED_LENGTH);
1100 testMarkAndReset(TransferKind.CHUNKED);
1104 testMarkAndReset(TransferKind.END_OF_STREAM);
1107 private void testMarkAndReset(TransferKind transferKind) throws IOException {
1216 testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind.FIXED_LENGTH, false);
1220 testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind.CHUNKED, false);
1224 testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind.FIXED_LENGTH, true);
1228 testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind.CHUNKED, true);
1249 private void testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind transferKind,
1318 testEarlyDisconnectDoesntHarmPooling(TransferKind.CHUNKED);
1322 testEarlyDisconnectDoesntHarmPooling(TransferKind.FIXED_LENGTH);
1325 private void testEarlyDisconnectDoesntHarmPooling(TransferKind transferKind) throws Exception {
1788 testRedirected(TransferKind.CHUNKED, true);
1792 testRedirected(TransferKind.FIXED_LENGTH, true);
1796 testRedirected(TransferKind.END_OF_STREAM, false);
1799 private void testRedirected(TransferKind transferKind, boolean reuse) throws Exception {
1984 testResponseRedirectedWithPost(HttpURLConnection.HTTP_MULT_CHOICE, TransferKind.END_OF_STREAM);
1988 testResponseRedirectedWithPost(HttpURLConnection.HTTP_MOVED_PERM, TransferKind.END_OF_STREAM);
1992 testResponseRedirectedWithPost(HttpURLConnection.HTTP_MOVED_TEMP, TransferKind.END_OF_STREAM);
1996 testResponseRedirectedWithPost(HttpURLConnection.HTTP_SEE_OTHER, TransferKind.END_OF_STREAM);
2000 testResponseRedirectedWithPost(HttpURLConnection.HTTP_MOVED_TEMP, TransferKind.CHUNKED);
2004 testResponseRedirectedWithPost(HttpURLConnection.HTTP_MOVED_TEMP, TransferKind.FIXED_LENGTH);
2007 private void testResponseRedirectedWithPost(int redirectCode, TransferKind transferKind)
2322 testFlushAfterStreamTransmitted(TransferKind.CHUNKED);
2326 testFlushAfterStreamTransmitted(TransferKind.FIXED_LENGTH);
2330 testFlushAfterStreamTransmitted(TransferKind.END_OF_STREAM);
2338 private void testFlushAfterStreamTransmitted(TransferKind transferKind) throws IOException {
2346 if (transferKind == TransferKind.CHUNKED) {
2348 } else if (transferKind == TransferKind.FIXED_LENGTH) {
2584 testInputStreamAvailable(TransferKind.CHUNKED);
2588 testInputStreamAvailable(TransferKind.FIXED_LENGTH);
2592 testInputStreamAvailable(TransferKind.END_OF_STREAM);
2595 private void testInputStreamAvailable(TransferKind transferKind) throws IOException {
2612 reusedConnectionFailsWithPost(TransferKind.END_OF_STREAM, 1024);
2617 reusedConnectionFailsWithPost(TransferKind.END_OF_STREAM, 16384);
2621 reusedConnectionFailsWithPost(TransferKind.CHUNKED, 1024);
2625 reusedConnectionFailsWithPost(TransferKind.CHUNKED, 16384);
2629 reusedConnectionFailsWithPost(TransferKind.FIXED_LENGTH, 1024);
2633 reusedConnectionFailsWithPost(TransferKind.FIXED_LENGTH, 16384);
2636 private void reusedConnectionFailsWithPost(TransferKind transferKind, int requestSize)
3054 enum TransferKind {