Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / components / cronet / android / java / src / org / chromium / net / HttpUrlRequest.java
index f9fde80..733847a 100644 (file)
@@ -83,6 +83,11 @@ public interface HttpUrlRequest {
     void setHttpMethod(String method);
 
     /**
+     * Disables redirect for this request.
+     */
+    void disableRedirects();
+
+    /**
      * Start executing the request.
      * <p>
      * If this is a streaming upload request using a ReadableByteChannel, the
@@ -138,6 +143,12 @@ public interface HttpUrlRequest {
     int getHttpStatusCode();
 
     /**
+     * Returns the HTTP status text of the status line. For example, if the
+     * request has a "HTTP/1.1 200 OK" response, this method returns "OK".
+     */
+    String getHttpStatusText();
+
+    /**
      * Returns the response header value for the given name or {@code null} if
      * not found.
      */