Request class

Inheritance

Properties

bodyUsed bool
indicates whether the body has been read yet
no setterinherited
cache String?
'default'|'no-store'|'reload'|'no-cache'|'force-cache'|'only-if-cached'
no setter
credentials String?
'omit'|'same-origin'|'include'
no setter
destination String?
''|'document'|'embed'|'font'|'image'|'manifest'|'media'|'object'|'report'|'script'|'serviceworker'|'sharedworker'|'style'|'worker'|'xslt'
no setter
hashCode int
The hash code for this object.
no setterinherited
headers Headers
no setter
integrity String?
no setter
method String?
no setter
mode String?
'navigate'|'same-origin'|'no-cors'|'cors'
no setter
redirect String?
'follow'|'error'|'manual'
no setter
referrer String?
no setter
referrerPolicy String?
''|'no-referrer'|'no-referrer-when-downgrade'|'same-origin'|'origin'|'strict-origin'|'origin-when-cross-origin'|'strict-origin-when-cross-origin'|'unsafe-url'
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
''|'audio'|'font'|'image'|'script'|'style'|'track'|'video'
no setter
url String?
no setter

Methods

arrayBuffer() Future<ByteBuffer>
Extracts the data as a ByteBuffer object.
inherited
blob() Future<Blob>
Extracts the data as a Blob object.
inherited
clone() Request
cloneWith({Map<String, String>? headers}) Future<Request>
Creates a new Request instance with the same content and headers, appending the specified values from headers Map.
formData() Future<FormData>
inherited
json<T>() Future<T>
Extracts the data as a JSON object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
text() Future<String>
Extracts the data as a plain text string.
inherited
toString() String
A string representation of this object.
inherited

Operators

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