HttpProperties class final

Constructors

HttpProperties({Duration? connectTimeout, Duration? readTimeout, Duration? writeTimeout, Map<String, String> baseHeaders = const {}})
Construct an http properties instance.

Properties

baseHeaders Map<String, String>
Headers that are included in all requests when possible. Not all connections support headers. Streaming requests on web will not include any customized headers. Additionally some headers are forbidden on some platforms and will be omitted on those platforms.
final
connectTimeout Duration
The connection timeout for requests.
final
hashCode int
The hash code for this object.
no setterinherited
readTimeout Duration
The read timeout for individual requests. This is the time after the headers are received and the body finishes being read.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writeTimeout Duration
The write timeout for individual requests. This is the time to complete writing the request body.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withHeaders(Map<String, String> additionalHeaders) HttpProperties
Create an http properties instance based on this instance with additional headers.

Operators

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