MapboxHttpService class
A service that handles HTTP-related functionality for Mapbox
Constructors
- MapboxHttpService({required BinaryMessenger binaryMessenger, required int channelSuffix})
- Creates a new MapboxHttpService instance
Properties
- binaryMessenger → BinaryMessenger
-
final
- channelSuffix → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearCustomHeaders(
) → Future< void> - Removes all custom headers previously configured via setCustomHeaders or setCustomHeadersForHost.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCustomHeaders(
Map< String, String> headers) → Future<void> - Sets custom HTTP headers that are attached to every request the map makes, regardless of host.
-
setCustomHeadersForHost(
String host, Map< String, String> headers) → Future<void> -
Sets custom HTTP headers scoped to a specific
host. -
setMaxRequestsPerHost(
int max) → Future< void> - Sets the maximum number of concurrent HTTP requests per host that the underlying HTTP service may issue.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited