HttpResponse class
Simply Class To Handle HTTP Response
Constructors
- HttpResponse(Response _response)
Properties
-
bytes
→ List<
int> -
It return bytes comprising the body of response
no setter
- content → String
-
It return content of response
no setter
- contentLength → int?
-
It return content length of response simply
no setter
- contentType → String
-
It return Content Type of response like json or text
no setter
- hasError → bool
-
Simply Return Response code
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
It return response header in format of Map { like in python dict }
no setter
- isRedirect → bool
-
It return Redirection Status of response simply
no setter
- json → Map
-
It return json response in format of Map { like in python dict }
no setter
- persistentConnection → bool
-
It return Persistent Connection Status
True or False
no setter - reasonPhrase → String?
-
It return HTTP status description like
OK
,Move Permanently
no setter - response → String
-
It return content of response simply
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
It return HTTP status Code with description like
200 - OK
no setter - statusCode → int
-
It return HTTP status Code of response like 200 , 301, 502
no setter
- success → bool
-
It return success status of request ,if request is complete than it return true else return false
no setter
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