Dart Documentationhttp_serverHttpBody

HttpBody abstract class

A HTTP content body produced by HttpBodyHandler for either HttpRequest or HttpClientResponse.

abstract class HttpBody {
 /**
  * A high-level type value, that reflects how the body was parsed, e.g.
  * "text", "binary" and "json".
  */
 String get type;

 /**
  * The actual body. The type depends on [type].
  */
 dynamic get body;
}

Subclasses

HttpClientResponseBody, HttpRequestBody

Properties

final body #

The actual body. The type depends on type.

dynamic get body;

final String type #

A high-level type value, that reflects how the body was parsed, e.g. "text", "binary" and "json".

String get type;