JsonWebClient class
- Implemented types
- Available extensions
Constructors
- JsonWebClient([String? baseUrl = "/"])
- JsonWebClient.api([String? baseUrl = "/"])
- JsonWebClient.legacy([String? baseUrl = "/"])
Properties
- basePath ← String?
-
no getter
- baseUrl ↔ String?
-
getter/setter pairoverride
- bearerToken ↔ String?
-
getter/setter pairoverride
- client ↔ BrowserClient
-
getter/setter pair
-
no setter
- exceptionFilter ↔ WebResponseExceptionFilter?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, String> -
getter/setter pair
- maxRetries ↔ int
-
getter/setter pair
- onAuthenticationRequired ↔ AsyncCallbackFunction?
-
getter/setter pairoverride
- oneWayBaseUrl ↔ String?
-
getter/setter pairoverride
- password ↔ String?
-
getter/setter pairoverride
- refreshToken ↔ String?
-
getter/setter pairoverride
- refreshTokenUri ↔ String?
-
getter/setter pair
- replyBaseUrl ↔ String?
-
getter/setter pairoverride
- requestFilter ↔ WebRequestFilter?
-
getter/setter pair
- responseFilter ↔ WebResponseFilter?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- urlFilter ↔ UrlFilter?
-
getter/setter pair
- userName ↔ String?
-
getter/setter pairoverride
- useTokenCookie ↔ bool
-
getter/setter pair
- withCredentials ↔ bool
-
getter/setter pair
Methods
-
api<
T> (IReturn< T> request, {Map<String, dynamic> ? args, String? method}) → Future<ApiResult< T> > -
override
-
apiVoid(
IReturnVoid request, {Map< String, dynamic> ? args, String? method}) → Future<ApiResult< EmptyResponse> > -
override
-
clearCookies(
) → void -
override
-
close(
{bool force = false}) → void -
override
-
createRequest(
SendWebContext info) → Future< Request> -
createResponse<
T> (Response res, SendWebContext info) → Future< T?> -
createUrlFromDto<
T> (String method, dynamic request) → String? -
Available on IServiceClient, provided by the ServiceClientExtensions extension
-
delete<
T> (IReturn< T> request, {Map<String, dynamic> ? args}) → Future<T> -
override
-
deleteAs<
T> (String path, {Map< String, dynamic> ? args, T? responseAs, WebRequestFilter? requestFilter, WebResponseFilter? responseFilter}) → Future<T> -
override
-
deleteUrl(
String path, {Map< String, dynamic> ? args}) → Future<Map< String, dynamic> > -
override
-
fetch<
T> (String method, dynamic request, [Map< String, dynamic> ? args, String? url]) → Future<T> -
get<
T> (IReturn< T> request, {Map<String, dynamic> ? args}) → Future<T> -
override
-
getAs<
T> (String path, {Map< String, dynamic> ? args, T? responseAs, WebRequestFilter? requestFilter, WebResponseFilter? responseFilter}) → Future<T> -
override
-
getRefreshTokenCookie(
) → String? -
override
-
getTokenCookie(
) → String? -
override
-
getUrl(
String path, {Map< String, dynamic> ? args}) → Future<Map< String, dynamic> > -
override
-
handleError(
Response? holdRes, Exception e, [WebServiceExceptionType? type]) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch<
T> (IReturn< T> request, {dynamic body, Map<String, dynamic> ? args}) → Future<T> -
override
-
patchAs<
T> (String path, dynamic body, {Map< String, dynamic> ? args, T? responseAs, WebRequestFilter? requestFilter, WebResponseFilter? responseFilter}) → Future<T> -
override
-
patchToUrl(
String path, dynamic body, {Map< String, dynamic> ? args}) → Future<Map< String, dynamic> > -
override
-
post<
T> (IReturn< T> request, {dynamic body, Map<String, dynamic> ? args}) → Future<T> -
override
-
postAs<
T> (String path, dynamic body, {Map< String, dynamic> ? args, T? responseAs, WebRequestFilter? requestFilter, WebResponseFilter? responseFilter}) → Future<T> -
override
-
postToUrl(
String path, dynamic body, {Map< String, dynamic> ? args}) → Future<Map< String, dynamic> > -
override
-
put<
T> (IReturn< T> request, {dynamic body, Map<String, dynamic> ? args}) → Future<T> -
override
-
putAs<
T> (String path, dynamic body, {Map< String, dynamic> ? args, T? responseAs, WebRequestFilter? requestFilter, WebResponseFilter? responseFilter}) → Future<T> -
override
-
putToUrl(
String path, dynamic body, {Map< String, dynamic> ? args}) → Future<Map< String, dynamic> > -
override
-
raiseError(
Response? res, Exception error) → dynamic -
send<
T> (IReturn< T> request, {String? method, dynamic body, Map<String, dynamic> ? args, T? responseAs, WebRequestFilter? requestFilter, WebResponseFilter? responseFilter}) → Future<T> -
override
-
sendAll<
T> (Iterable< IReturn< requests, {WebRequestFilter? requestFilter, WebResponseFilter? responseFilter}) → Future<T> >List< T> > -
override
-
sendAllOneWay<
T> (Iterable< IReturn< requests, {WebRequestFilter? requestFilter, WebResponseFilter? responseFilter}) → Future<T> >void> -
override
-
sendRequest<
T> (SendWebContext info) → Future< T> -
setCredentials(
String? userName, String? password) → void -
Available on IServiceClient, provided by the ServiceClientExtensions extension
-
toAbsoluteUrl(
String relativeOrAbsoluteUrl) → String -
Available on IServiceClient, provided by the ServiceClientExtensions extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- globalExceptionFilter ↔ WebResponseExceptionFilter?
-
getter/setter pair
- globalRequestFilter ↔ WebRequestFilter?
-
getter/setter pair
- globalResponseFilter ↔ WebResponseFilter?
-
getter/setter pair