Dart API Referencedart:ioHttpRequest

HttpRequest Interface

Http request delivered to the HTTP server callback.

Methods

Code HttpConnectionInfo get connectionInfo() #

Get information about the client connection. Returns null if the socket isn't available.

HttpConnectionInfo get connectionInfo();

Code int get contentLength() #

Returns the content length of the request body. If the size of the request body is not known in advance this -1.

int get contentLength();

Code List<Cookie> get cookies() #

Returns the cookies in the request (from the Cookie header).

List<Cookie> get cookies();

Code HttpHeaders get headers() #

Returns the request headers.

HttpHeaders get headers();

Code InputStream get inputStream() #

Returns the input stream for the request. This is used to read the request data.

InputStream get inputStream();

Code String get method() #

Returns the method for the request.

String get method();

Code String get path() #

Returns the path part of the URI.

String get path();

Code bool get persistentConnection() #

Returns the persistent connection state signaled by the client.

bool get persistentConnection();

Code String get protocolVersion() #

Returns the HTTP protocol version used in the request. This will be "1.0" or "1.1".

String get protocolVersion();

Code Map<String, String> get queryParameters() #

Returns the parsed query string.

Map<String, String> get queryParameters();

Code String get queryString() #

Returns the query string.

String get queryString();

Code String get uri() #

Returns the URI for the request.

String get uri();