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

Unified Diff: pkg/http/lib/src/streamed_response.dart

Issue 810223002: Remove the http package from the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: pkg/http/lib/src/streamed_response.dart
diff --git a/pkg/http/lib/src/streamed_response.dart b/pkg/http/lib/src/streamed_response.dart
deleted file mode 100644
index 21c7d9aa9700fcc5410eb751c253eea2fca1a3fc..0000000000000000000000000000000000000000
--- a/pkg/http/lib/src/streamed_response.dart
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012, 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 streamed_response;
-
-import 'dart:async';
-
-import 'byte_stream.dart';
-import 'base_response.dart';
-import 'base_request.dart';
-import 'utils.dart';
-
-/// An HTTP response where the response body is received asynchronously after
-/// the headers have been received.
-class StreamedResponse extends BaseResponse {
- /// The stream from which the response body data can be read. This should
- /// always be a single-subscription stream.
- final ByteStream stream;
-
- /// Creates a new streaming response. [stream] should be a single-subscription
- /// stream.
- StreamedResponse(
- Stream<List<int>> stream,
- int statusCode,
- {int contentLength,
- BaseRequest request,
- Map<String, String> headers: const {},
- bool isRedirect: false,
- bool persistentConnection: true,
- String reasonPhrase})
- : super(
- statusCode,
- contentLength: contentLength,
- request: request,
- headers: headers,
- isRedirect: isRedirect,
- persistentConnection: persistentConnection,
- reasonPhrase: reasonPhrase),
- this.stream = toByteStream(stream);
-}
« no previous file with comments | « pkg/http/lib/src/streamed_request.dart ('k') | pkg/http/lib/src/utils.dart » ('j') | pkg/pkg.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698