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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 1908943004: Fix void foo(..) => ... to use { } instead. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Upload Created 4 years, 8 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 | « sdk/lib/io/bytes_builder.dart ('k') | sdk/lib/io/http_session.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index d002f30df598e0e881bff6477e6852841c1ccb88..846b724f389b87e0ec7dc6cd62868a959f0c78a7 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -1781,8 +1781,9 @@ class _HttpClient implements HttpClient {
_authenticate = f;
}
- void addCredentials(Uri url, String realm, HttpClientCredentials cr) =>
- _credentials.add(new _SiteCredentials(url, realm, cr));
+ void addCredentials(Uri url, String realm, HttpClientCredentials cr) {
+ _credentials.add(new _SiteCredentials(url, realm, cr));
+ }
set authenticateProxy(
Future<bool> f(String host, int port, String scheme, String realm)) {
@@ -1792,8 +1793,9 @@ class _HttpClient implements HttpClient {
void addProxyCredentials(String host,
int port,
String realm,
- HttpClientCredentials cr) =>
- _proxyCredentials.add(new _ProxyCredentials(host, port, realm, cr));
+ HttpClientCredentials cr) {
+ _proxyCredentials.add(new _ProxyCredentials(host, port, realm, cr));
+ }
set findProxy(String f(Uri uri)) => _findProxy = f;
@@ -2580,17 +2582,17 @@ class _DetachedSocket extends Stream<List<int>> implements Socket {
_socket.encoding = value;
}
- void write(Object obj) => _socket.write(obj);
+ void write(Object obj) { _socket.write(obj); }
- void writeln([Object obj = ""]) => _socket.writeln(obj);
+ void writeln([Object obj = ""]) { _socket.writeln(obj); }
- void writeCharCode(int charCode) => _socket.writeCharCode(charCode);
+ void writeCharCode(int charCode) { _socket.writeCharCode(charCode); }
void writeAll(Iterable objects, [String separator = ""]) {
_socket.writeAll(objects, separator);
}
- void add(List<int> bytes) => _socket.add(bytes);
+ void add(List<int> bytes) { _socket.add(bytes); }
void addError(error, [StackTrace stackTrace]) =>
_socket.addError(error, stackTrace);
@@ -2599,7 +2601,7 @@ class _DetachedSocket extends Stream<List<int>> implements Socket {
return _socket.addStream(stream);
}
- void destroy() => _socket.destroy();
+ void destroy() { _socket.destroy(); }
Future flush() => _socket.flush();
@@ -2768,11 +2770,13 @@ class _HttpClientBasicCredentials
return "Basic $auth";
}
- void authorize(_Credentials _, HttpClientRequest request) =>
- request.headers.set(HttpHeaders.AUTHORIZATION, authorization());
+ void authorize(_Credentials _, HttpClientRequest request) {
+ request.headers.set(HttpHeaders.AUTHORIZATION, authorization());
+ }
- void authorizeProxy(_ProxyCredentials _, HttpClientRequest request) =>
- request.headers.set(HttpHeaders.PROXY_AUTHORIZATION, authorization());
+ void authorizeProxy(_ProxyCredentials _, HttpClientRequest request) {
+ request.headers.set(HttpHeaders.PROXY_AUTHORIZATION, authorization());
+ }
}
« no previous file with comments | « sdk/lib/io/bytes_builder.dart ('k') | sdk/lib/io/http_session.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698