HttpConnectionOptions class

Options provided to the 'withUrl' factory constructor on HubConnection to configure options for the HTTP-based transports.

Constructors

HttpConnectionOptions({BaseClient? client, dynamic transport, Logging? logging, AccessTokenFactory? accessTokenFactory, bool logMessageContent = false, bool skipNegotiation = false, bool withCredentials = true, Map<String, String>? customHeaders})

Properties

accessTokenFactory AccessTokenFactory?
A function that provides an access token required for HTTP Bearer authentication.
final
client → BaseClient?
An BaseClient that will be used to make HTTP requests.
final
customHeaders Map<String, String>?
final
hashCode int
The hash code for this object.
no setterinherited
logging Logging?
Configures the logger used for logging.
final
logMessageContent bool
A boolean indicating if message content should be logged.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipNegotiation bool
A boolean indicating if negotiation should be skipped.
final
transport → dynamic
An HttpTransportType or Transport value specifying the transport to use for the connection.
final
withCredentials bool
This controls whether credentials such as cookies are sent in cross-site requests.
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

Operators

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