response.dart 476 Bytes
Newer Older
1 2 3 4
// 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.

5
import 'dart:typed_data';
6 7 8

/// An HTTP response where the entire response body is known in advance.
class Response {
9
  const Response({ this.body, this.bodyBytes, this.statusCode });
10
  final String body;
11
  final Uint8List bodyBytes;
12 13
  final int statusCode;
}