FetchResponse class final

What a server answered.

Constructors

FetchResponse(int status, Uint8List body, String? etag, {({int end, int start, int total})? range})
A response with status, body and the etag it gave, and — for a part of a file — the range it holds.
const

Properties

body → Uint8List
The bytes; empty for a 304.
final
etag → String?
The ETag header, when there was one.
final
hashCode → int
The hash code for this object.
no setterinherited
range → ({int end, int start, int total})?
For a 206: which bytes of the file body holds (both ends included) and how long the whole file is.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
The HTTP status: 200; 206 for the part of a file a ByteRange asked for; or 304 for an unchanged cached copy.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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