RequestBuilder class

Constructors

RequestBuilder()

Properties

account Account
read / write
content ↔ dynamic
read / write
content_type String
read / write
declutter PathDeclutter
read / write
files Map<String, String>
final
formData FormData
read / write
hasPagination bool
read-only
headers Map<String, String>
final
host String
read / write
listOf_ String
read / write
meta Map<String, String>
final
method RequestMethod
read / write
objectOf_ String
read / write
onReceiveProgress ProgressCallback
read / write
onSendProgress ProgressCallback
read / write
pagination Pagination
read / write
params Map<String, StringWrapper>
final
path String
read / write
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

addAllParams(Map<String, String> otherParams) RequestBuilder
asResponse({Dio client}) Future<Response>
delete() RequestBuilder
fetchBack(dynamic info) RequestBuilder
fetchFront(dynamic info) RequestBuilder
get() RequestBuilder
getMetaTag() String
jsonpath(String jsonpath) RequestBuilder
listOf<T>({String type}) Future<MjolnirResponse<List<T>>>
makeRequestCompute(dynamic data) RequestCompute
methodToString() String
objectOf<T>({String type}) Future<MjolnirResponse<T>>
param(String key, dynamic value) RequestBuilder
paramEncoded(String key, String value) RequestBuilder
patch() RequestBuilder
plainJson() Future<MjolnirResponse<Map>>
plainJsonArray() Future<MjolnirResponse<List>>
post() RequestBuilder
put() RequestBuilder
setContent(String content, String contentType) RequestBuilder
setDeclutter(PathDeclutter declutter) RequestBuilder
setJsonContent(Map jsonContent) RequestBuilder
setMeta(String key, String value) RequestBuilder
setMetaTag(String value) RequestBuilder
sign() RequestBuilder
toQuery() String
toRequestKey() String
toUrl() String
withAccount(Account account) RequestBuilder
withFormData(FormData formData) RequestBuilder
withPagination(Pagination pagination) RequestBuilder
withReceiveProgress(ProgressCallback callback) RequestBuilder
withSendProgress(ProgressCallback callback) RequestBuilder
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

Static Methods

getClientSingletonLazy() Dio
setClientSingleton(Dio value) → void