PFDartHTTP class

Constructors

PFDartHTTP()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addHeader(String key, String value) PFDartHTTP
clearHeader() PFDartHTTP
DELERERequest(String url, {Map<String, String>? data}) Future<PFHttpResponse>
getHeaders() Map<String, String>
GETRequest(String url, {Map<String, String>? params}) Future<PFHttpResponse>
jsonDELETERequest(String url, {Map<String, dynamic>? data}) Future<PFHttpResponse>
jsonPOSTRequest(String url, {Map<String, dynamic>? data}) Future<PFHttpResponse>
jsonPUTRequest(String url, {Map<String, dynamic>? data}) Future<PFHttpResponse>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
POSTRequest(String url, {Map<String, String>? data}) Future<PFHttpResponse>
PUTRequest(String url, {Map<String, String>? data}) Future<PFHttpResponse>
requestTo(String url, String method, {Object? data}) Future<PFHttpResponse>
toString() String
A string representation of this object.
inherited
uploadRequest(String url, Map<String, File> files, {Map<String, String>? data, dynamic method = POST}) Future<PFHttpResponse>

Operators

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

Static Methods

instance() PFDartHTTP

Constants

APPLICATION_JSON → const String
CONTENT_TYPE → const String
DELETE → const String
GET → const String
POST → const String
PUT → const String