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

Unified Diff: runtime/bin/http.dart

Issue 9625008: Add support for using an URL for establishing HTTP connections (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | runtime/bin/http_impl.dart » ('j') | runtime/bin/http_impl.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http.dart
diff --git a/runtime/bin/http.dart b/runtime/bin/http.dart
index 8a5097acceaf9c74db8da4be6934dd3378a029d5..6b3527a8191217ee3ed464e856fca821d4a97fec 100644
--- a/runtime/bin/http.dart
+++ b/runtime/bin/http.dart
@@ -234,16 +234,22 @@ interface HttpClient default _HttpClient {
*/
HttpClientConnection open(String method, String host, int port, String path);
+ HttpClientConnection openUrl(String method, Uri url);
Mads Ager (google) 2012/03/08 08:02:52 Please add doc comment for all three of these.
Søren Gjesse 2012/03/08 08:30:04 Done.
+
/**
* Opens a HTTP connection using the GET method. See [open] for details.
*/
HttpClientConnection get(String host, int port, String path);
+ HttpClientConnection getUrl(Uri url);
+
/**
* Opens a HTTP connection using the POST method. See [open] for details.
*/
HttpClientConnection post(String host, int port, String path);
+ HttpClientConnection postUrl(Uri url);
+
/**
* Shutdown the HTTP client releasing all resources.
*/
« no previous file with comments | « no previous file | runtime/bin/http_impl.dart » ('j') | runtime/bin/http_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698