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

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

Issue 382193002: Upstream missing changes from HttpUrlRequest.java (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Limit uploadContentLength to int. Created 6 years, 5 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
diff --git a/components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java b/components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java
index 114ec9879114b19bac61d39820fc98c42dacce9a..fbf5178c96265bf7934170bbd5baafc6b014c657 100644
--- a/components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java
+++ b/components/cronet/android/java/src/org/chromium/net/HttpUrlRequest.java
@@ -71,6 +71,17 @@ public interface HttpUrlRequest {
long contentLength);
/**
+ * Sets the HTTP method verb to use for this request. Currently can only be
+ * "POST" or "PUT".
+ *
+ * <p>The default when this method is not called is "GET" if the request has
+ * no body or "POST" if it does.
+ *
+ * @param method Either "POST" or "PUT".
+ */
+ void setHttpMethod(String method);
+
+ /**
* Start executing the request.
* <p>
* If this is a streaming upload request using a ReadableByteChannel, the

Powered by Google App Engine
This is Rietveld 408576698