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

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

Issue 326993003: Merge 271992 "Upstream changes to:" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985/src/
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java
===================================================================
--- components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java (revision 276124)
+++ components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java (working copy)
@@ -58,6 +58,9 @@
/**
* Sets a readable byte channel to upload as part of a POST request.
*
+ * <p>Once {@link #start()} is called, this channel is guaranteed to be
+ * closed, either when the upload completes, or when it is canceled.
+ *
* @param contentType MIME type of the post content or null if this is not a
* POST.
* @param channel The channel to read to read upload data from if this is a
@@ -113,6 +116,13 @@
int getHttpStatusCode();
/**
+ * Returns the response header value for the given name or {@code null} if
+ * not found.
+ */
+ String getHeader(String name);
+
+
+ /**
* Returns the exception that occurred while executing the request of null
* if the request was successful.
*/

Powered by Google App Engine
This is Rietveld 408576698