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

Side by Side Diff: pkg/scheduled_test/lib/src/scheduled_server/safe_http_server.dart

Issue 131213002: Fix other HttpRequest implementations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library safe_http_server; 5 library safe_http_server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 // TODO(nweiz): remove this when issue 9140 is fixed. 10 // TODO(nweiz): remove this when issue 9140 is fixed.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 final HttpResponse response; 76 final HttpResponse response;
77 77
78 _HttpRequestWrapper(HttpRequest inner) 78 _HttpRequestWrapper(HttpRequest inner)
79 : super(inner), 79 : super(inner),
80 _inner = inner, 80 _inner = inner,
81 response = new _HttpResponseWrapper(inner.response); 81 response = new _HttpResponseWrapper(inner.response);
82 82
83 int get contentLength => _inner.contentLength; 83 int get contentLength => _inner.contentLength;
84 String get method => _inner.method; 84 String get method => _inner.method;
85 Uri get uri => _inner.uri; 85 Uri get uri => _inner.uri;
86 Uri get requestedUri => _inner.requestedUri;
86 HttpHeaders get headers => _inner.headers; 87 HttpHeaders get headers => _inner.headers;
87 List<Cookie> get cookies => _inner.cookies; 88 List<Cookie> get cookies => _inner.cookies;
88 bool get persistentConnection => _inner.persistentConnection; 89 bool get persistentConnection => _inner.persistentConnection;
89 X509Certificate get certificate => _inner.certificate; 90 X509Certificate get certificate => _inner.certificate;
90 HttpSession get session => _inner.session; 91 HttpSession get session => _inner.session;
91 String get protocolVersion => _inner.protocolVersion; 92 String get protocolVersion => _inner.protocolVersion;
92 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; 93 HttpConnectionInfo get connectionInfo => _inner.connectionInfo;
93 } 94 }
94 95
95 /// A wrapper around [HttpResponse] for the sole purpose of swallowing errors on 96 /// A wrapper around [HttpResponse] for the sole purpose of swallowing errors on
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 Future close() => _inner.close(); 142 Future close() => _inner.close();
142 Future flush() => _inner.flush(); 143 Future flush() => _inner.flush();
143 void write(Object obj) => _inner.write(obj); 144 void write(Object obj) => _inner.write(obj);
144 void writeAll(Iterable objects, [String separator = ""]) => 145 void writeAll(Iterable objects, [String separator = ""]) =>
145 _inner.writeAll(objects, separator); 146 _inner.writeAll(objects, separator);
146 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); 147 void writeCharCode(int charCode) => _inner.writeCharCode(charCode);
147 void writeln([Object obj = ""]) => _inner.writeln(obj); 148 void writeln([Object obj = ""]) => _inner.writeln(obj);
148 void addError(error, [StackTrace stackTrace]) => 149 void addError(error, [StackTrace stackTrace]) =>
149 _inner.addError(error, stackTrace); 150 _inner.addError(error, stackTrace);
150 } 151 }
OLDNEW
« no previous file with comments | « pkg/http/test/safe_http_server.dart ('k') | sdk/lib/_internal/pub/lib/src/safe_http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698