Chromium Code Reviews| Index: sdk/lib/io/http.dart |
| diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart |
| index 765f583546858723ffd086bdf0b2a0cc4f43cb5c..3a860ee0b4894cfc8a1565cc6afc6745c4c4664f 100644 |
| --- a/sdk/lib/io/http.dart |
| +++ b/sdk/lib/io/http.dart |
| @@ -1317,6 +1317,46 @@ abstract class HttpClient { |
| Future<HttpClientRequest> postUrl(Uri url); |
| /** |
| + * Opens a HTTP connection using the PUT method. |
| + * |
| + * The server is specified using [host] and [port], and the path |
| + * (including possible fragment and query) is specified using |
| + * [path]. |
| + * |
| + * See [open] for details. |
| + */ |
| + Future<HttpClientRequest> put(String host, int port, String path); |
| + |
| + /** |
| + * Opens a HTTP connection using the PUT method. |
| + * |
| + * The URL to use is specified in [url]. |
| + * |
| + * See [openUrl] for details. |
| + */ |
| + Future<HttpClientRequest> putUrl(Uri url); |
| + |
| + /** |
| + * Opens a HTTP connection using the DELETE method. |
| + * |
| + * The server is specified using [host] and [port], and the path |
| + * (including possible fragment and query) is specified using |
| + * [path]. |
| + * |
| + * See [open] for details. |
| + */ |
| + Future<HttpClientRequest> delete(String host, int port, String path); |
| + |
| + /** |
| + * Opens a HTTP connection using the DELETE method. |
| + * |
| + * The URL to use is specified in [url]. |
| + * |
| + * See [openUrl] for details. |
| + */ |
| + Future<HttpClientRequest> deleteUrl(Uri url); |
| + |
| + /** |
|
Lasse Reichstein Nielsen
2014/04/22 08:49:47
Please also add "HEAD" support.
I don't think TRAC
Anders Johnsen
2014/04/22 10:58:36
Done.
|
| * Sets the function to be called when a site is requesting |
| * authentication. The URL requested and the security realm from the |
| * server are passed in the arguments [url] and [realm]. |