HttpRequest class

Represents a HTTP request.

Inheritance

Constructors

HttpRequest({String body = "", String method = "", String path = "", Map<String, String> pathParams = const {}, Map<String, List<String>> queryParams = const {}, Map<String, List<String>> headers = const {}})

Properties

body String
The body that was sent with the request.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, List<String>>
The request headers.
getter/setter pair
method String
The HTTP method used for the request.
getter/setter pair
path String
The path that the request was sent on.
getter/setter pair
pathParams Map<String, String>
The path params sent with the request. i.e. /hello/:name.
getter/setter pair
queryParams Map<String, List<String>>
The query params sent with the request. i.e. /hello?query=param.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

json() Map<String, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited