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

Unified Diff: pkg/http_multi_server/lib/src/multi_headers.dart

Issue 812253002: Delete a bunch of packages that are now on GitHub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Un-delete http Created 6 years 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 | « pkg/http_multi_server/lib/http_multi_server.dart ('k') | pkg/http_multi_server/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_multi_server/lib/src/multi_headers.dart
diff --git a/pkg/http_multi_server/lib/src/multi_headers.dart b/pkg/http_multi_server/lib/src/multi_headers.dart
deleted file mode 100644
index fcd782cfce699e3eb76bc0d4b7a78b2aa945ef98..0000000000000000000000000000000000000000
--- a/pkg/http_multi_server/lib/src/multi_headers.dart
+++ /dev/null
@@ -1,123 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library http_multi_server.multi_headers;
-
-import 'dart:io';
-
-/// A class that delegates header access and setting to many [HttpHeaders]
-/// instances.
-class MultiHeaders implements HttpHeaders {
- /// The wrapped headers.
- final Set<HttpHeaders> _headers;
-
- bool get chunkedTransferEncoding => _headers.first.chunkedTransferEncoding;
- set chunkedTransferEncoding(bool value) {
- for (var headers in _headers) {
- headers.chunkedTransferEncoding = value;
- }
- }
-
- int get contentLength => _headers.first.contentLength;
- set contentLength(int value) {
- for (var headers in _headers) {
- headers.contentLength = value;
- }
- }
-
- ContentType get contentType => _headers.first.contentType;
- set contentType(ContentType value) {
- for (var headers in _headers) {
- headers.contentType = value;
- }
- }
-
- DateTime get date => _headers.first.date;
- set date(DateTime value) {
- for (var headers in _headers) {
- headers.date = value;
- }
- }
-
- DateTime get expires => _headers.first.expires;
- set expires(DateTime value) {
- for (var headers in _headers) {
- headers.expires = value;
- }
- }
-
- String get host => _headers.first.host;
- set host(String value) {
- for (var headers in _headers) {
- headers.host = value;
- }
- }
-
- DateTime get ifModifiedSince => _headers.first.ifModifiedSince;
- set ifModifiedSince(DateTime value) {
- for (var headers in _headers) {
- headers.ifModifiedSince = value;
- }
- }
-
- bool get persistentConnection => _headers.first.persistentConnection;
- set persistentConnection(bool value) {
- for (var headers in _headers) {
- headers.persistentConnection = value;
- }
- }
-
- int get port => _headers.first.port;
- set port(int value) {
- for (var headers in _headers) {
- headers.port = value;
- }
- }
-
- MultiHeaders(Iterable<HttpHeaders> headers)
- : _headers = headers.toSet();
-
- void add(String name, Object value) {
- for (var headers in _headers) {
- headers.add(name, value);
- }
- }
-
- void forEach(void f(String name, List<String> values)) =>
- _headers.first.forEach(f);
-
- void noFolding(String name) {
- for (var headers in _headers) {
- headers.noFolding(name);
- }
- }
-
- void remove(String name, Object value) {
- for (var headers in _headers) {
- headers.remove(name, value);
- }
- }
-
- void removeAll(String name) {
- for (var headers in _headers) {
- headers.removeAll(name);
- }
- }
-
- void set(String name, Object value) {
- for (var headers in _headers) {
- headers.set(name, value);
- }
- }
-
- String value(String name) => _headers.first.value(name);
-
- List<String> operator[](String name) => _headers.first[name];
-
- void clear() {
- for (var headers in _headers) {
- headers.clear();
- }
- }
-}
« no previous file with comments | « pkg/http_multi_server/lib/http_multi_server.dart ('k') | pkg/http_multi_server/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698