RouteBase class

Implementers

Constructors

RouteBase()

Properties

getAfter → List<After>
final
getAuthHeaders → Map<String, String>
final
getBefore → List<Before>
final
getClient BaseClient
read / write
getCookies → List<ClientCookie>
final
getHeaders → Map<String, String>
final
getQuery → Map<String, dynamic>
final
getUrl → String
URL
read-only
metadataMap → Map<String, dynamic>
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

after(After interceptor) RouteBase
authHeader(String scheme, String credentials) RouteBase
authToken(String credentials) RouteBase
basicAuth(String username, String password) RouteBase
before(Before interceptor) RouteBase
charset(String charset) RouteBase
contentType(String mimeType, String charset) RouteBase
cookies(List<ClientCookie> cookie) RouteBase
Add headers
headers(Map<String, String> values) RouteBase
Add headers
hookHeader(String key, ValueCallback<String> getter) RouteBase
http(String origin, [String path]) RouteBase
https(String origin, [String path]) RouteBase
metadata(Map<String, dynamic> value) RouteBase
mimeType(String mimeType) RouteBase
origin(String origin, [String path]) RouteBase
Set origin of the URL
path(String path) RouteBase
Append path segments to the URL
pathParams(String name, dynamic value) RouteBase
queries(Map<String, dynamic> value) RouteBase
Add query parameters
query(String key, dynamic value) RouteBase
Add query parameters
url(String value) RouteBase
withClient(BaseClient client) RouteBase
Set the client used to make HTTP requests
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited