Dart Documentationhttp_serverHttpRequestBody

HttpRequestBody abstract class

The HttpBody of a HttpRequest will be of type HttpRequestBody. It provides access to the request, for reading all request header information and responding to the client.

abstract class HttpRequestBody extends HttpBody {
 /**
  * The [HttpRequest] from which the [HttpRequestBody] was created.
  *
  * Note that the [HttpRequest] is already drained at this point, so the
  * `Stream` methods cannot be used.
  */
 HttpRequest get request;
}

Extends

HttpBody > HttpRequestBody

Properties

final body #

inherited from HttpBody

The actual body. The type depends on type.

dynamic get body;

final HttpRequest request #

The HttpRequest from which the HttpRequestBody was created.

Note that the HttpRequest is already drained at this point, so the Stream methods cannot be used.

HttpRequest get request;

final String type #

inherited from HttpBody

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

String get type;