Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Side by Side Diff: components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java

Issue 423163007: Add method getAllHeaders to HttpUrlRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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;
11 import java.util.Map;
10 12
11 /** 13 /**
12 * HTTP request (GET or POST). 14 * HTTP request (GET or POST).
13 */ 15 */
14 public interface HttpUrlRequest { 16 public interface HttpUrlRequest {
15 17
16 public static final int REQUEST_PRIORITY_IDLE = 0; 18 public static final int REQUEST_PRIORITY_IDLE = 0;
17 19
18 public static final int REQUEST_PRIORITY_LOWEST = 1; 20 public static final int REQUEST_PRIORITY_LOWEST = 1;
19 21
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 * method returns 200. 129 * method returns 200.
128 */ 130 */
129 int getHttpStatusCode(); 131 int getHttpStatusCode();
130 132
131 /** 133 /**
132 * Returns the response header value for the given name or {@code null} if 134 * Returns the response header value for the given name or {@code null} if
133 * not found. 135 * not found.
134 */ 136 */
135 String getHeader(String name); 137 String getHeader(String name);
136 138
139 /**
140 * Returns an unmodifiable map of the response-header fields and values.
141 */
142 Map<String, List<String>> getAllHeaders();
137 143
138 /** 144 /**
139 * Returns the exception that occurred while executing the request of null 145 * Returns the exception that occurred while executing the request of null
140 * if the request was successful. 146 * if the request was successful.
141 */ 147 */
142 IOException getException(); 148 IOException getException();
143 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698