HttpRequest class

Available extensions

Constructors

HttpRequest.new({TargetApi? api})

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

cancel({String? path}) → dynamic

Available on HttpRequest, provided by the HTTP extension

取消网络请求
delete(String path, {Map<String, dynamic>? queryParamaters, dynamic data, Map<String, dynamic>? headers, ResponseSerializer<Codable>? serializer, T? model}) Future<HttpResponse<Codable>>

Available on HttpRequest, provided by the HTTP extension

get(String path, {Map<String, dynamic>? queryParamaters, Map<String, dynamic>? headers, ResponseSerializer<Codable>? serializer, T? model}) Future<HttpResponse<Codable>>

Available on HttpRequest, provided by the HTTP extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(String path, {Map<String, dynamic>? queryParamaters, dynamic data, Map<String, dynamic>? headers, ResponseSerializer<Codable>? serializer, T? model}) Future<HttpResponse<Codable>>

Available on HttpRequest, provided by the HTTP extension

post(String path, {Map<String, dynamic>? queryParamaters, dynamic data, Map<String, dynamic>? headers, ResponseSerializer<Codable>? serializer, T? model}) Future<HttpResponse<Codable>>

Available on HttpRequest, provided by the HTTP extension

put(String path, {Map<String, dynamic>? queryParamaters, dynamic data, Map<String, dynamic>? headers, ResponseSerializer<Codable>? serializer, T? model}) Future<HttpResponse<Codable>>

Available on HttpRequest, provided by the HTTP extension

toString() String
A string representation of this object.
inherited

Operators

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