| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.net; | 5 package org.chromium.net; |
| 6 | 6 |
| 7 import java.io.IOException; | 7 import java.io.IOException; |
| 8 import java.nio.ByteBuffer; | 8 import java.nio.ByteBuffer; |
| 9 import java.nio.channels.ReadableByteChannel; | 9 import java.nio.channels.ReadableByteChannel; |
| 10 import java.util.List; | 10 import java.util.List; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 * Cancel the request in progress. | 95 * Cancel the request in progress. |
| 96 */ | 96 */ |
| 97 void cancel(); | 97 void cancel(); |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * Returns {@code true} if the request has been canceled. | 100 * Returns {@code true} if the request has been canceled. |
| 101 */ | 101 */ |
| 102 boolean isCanceled(); | 102 boolean isCanceled(); |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * Returns protocol (e.g. "quic/1+spdy/3") negotiated with server. |
| 106 */ |
| 107 String getNegotiatedProtocol(); |
| 108 |
| 109 /** |
| 105 * Returns the entire response as a ByteBuffer. | 110 * Returns the entire response as a ByteBuffer. |
| 106 */ | 111 */ |
| 107 ByteBuffer getByteBuffer(); | 112 ByteBuffer getByteBuffer(); |
| 108 | 113 |
| 109 /** | 114 /** |
| 110 * Returns the entire response as a byte array. | 115 * Returns the entire response as a byte array. |
| 111 */ | 116 */ |
| 112 byte[] getResponseAsBytes(); | 117 byte[] getResponseAsBytes(); |
| 113 | 118 |
| 114 /** | 119 /** |
| (...skipping 27 matching lines...) Expand all Loading... |
| 142 * HttpUrlConnection. | 147 * HttpUrlConnection. |
| 143 */ | 148 */ |
| 144 Map<String, List<String>> getAllHeaders(); | 149 Map<String, List<String>> getAllHeaders(); |
| 145 | 150 |
| 146 /** | 151 /** |
| 147 * Returns the exception that occurred while executing the request of null | 152 * Returns the exception that occurred while executing the request of null |
| 148 * if the request was successful. | 153 * if the request was successful. |
| 149 */ | 154 */ |
| 150 IOException getException(); | 155 IOException getException(); |
| 151 } | 156 } |
| OLD | NEW |