ProxyNetworkingClient class
A NetworkingClient which relays requests to a proxy web server. No initial
CONNECT
request is sent, as this proxy client acts on an API level.
- Inheritance
-
- Object
- NetworkingClient
- ProxyNetworkingClient
- Implementers
Constructors
- ProxyNetworkingClient({required NetworkingClient client, required ProxyConfiguration proxyConfiguration})
-
ProxyNetworkingClient.custom({required Duration duration, required List<
Interceptor> interceptors, required NetworkingClient client, required ProxyConfiguration proxyConfiguration})
Properties
- baseUrl → Uri
-
finalinherited
- client → NetworkingClient
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → Client
-
finalinherited
-
interceptors
→ List<
Interceptor> -
finalinherited
- proxyConfiguration → ProxyConfiguration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutDuration → Duration
-
finalinherited
Methods
-
delete(
{required String endpoint, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
get(
{required String endpoint, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
multipart(
{required String endpoint, Map< String, String> ? form, Map<String, Uint8List> ? files, Map<String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
Crafts and sends a multipart/form-data request.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch(
{required String endpoint, ContentType contentType = ContentType.json, String? data, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
post(
{required String endpoint, ContentType contentType = ContentType.json, String? data, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
put(
{required String endpoint, ContentType contentType = ContentType.json, String? data, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
send(
{required Request request}) → Future< Either< RequestError, Response> > -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited