FusionAuthRESTClient<ReturnType, ErrorReturnType> class
Constructors
- FusionAuthRESTClient(String host, HttpClient httpClient)
Properties
- body ↔ dynamic
-
getter/setter pair
- credentials ↔ HttpClientCredentials
-
getter/setter pair
-
errorResponseHandler
↔ ResponseHandler<
ReturnType, ErrorReturnType> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, String> -
getter/setter pair
- host ↔ String
-
getter/setter pair
- httpClient → HttpClient
-
final
- method ↔ String
-
getter/setter pair
-
parameters
↔ Map<
String, String> -
getter/setter pair
- realm ↔ String
-
getter/setter pair
-
responseHandler
↔ ResponseHandler<
ReturnType, ErrorReturnType> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri ↔ String
-
getter/setter pair
Methods
-
getFullUrl(
) → String - Get the full url + parameter list
-
go(
) → Future< ClientResponse< ReturnType, ErrorReturnType> > - Run the request and return a promise. This promise will resolve if the request is successful and reject otherwise.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withAuthorization(
String key) → FusionAuthRESTClient - Sets the authorization header using a key
-
withCredentials(
HttpClientCredentials value) → FusionAuthRESTClient - Sets request's credentials.
-
withErrorResponseHandler(
ResponseHandler errorResponseHandler) → FusionAuthRESTClient -
withFormData(
Map< String, dynamic> body) → FusionAuthRESTClient - Sets the body of the client request.
-
withHeader(
String key, String value) → FusionAuthRESTClient - Adds a header to the request.
-
withJSONBody(
dynamic body) → FusionAuthRESTClient - Sets the body of the client request.
-
withMethod(
String method) → FusionAuthRESTClient - Sets the http method for the request
-
withParameter(
String name, dynamic value) → FusionAuthRESTClient - Adds parameters to the request.
-
withRealm(
String realm) → FusionAuthRESTClient -
withResponseHandler(
ResponseHandler responseHandler) → FusionAuthRESTClient -
withUri(
String uri) → FusionAuthRESTClient - Sets the uri of the request
-
withUriSegment(
dynamic segment) → FusionAuthRESTClient - Adds a segment to the request uri
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited