Transport class

Internal HTTP transport used by every resource. You should not construct this directly — the per-host clients (NorbixApi, NorbixHub) own one.

Constructors

Transport({required NorbixConfig config, HttpDriver? driver, Map<String, Object?>? defaultPathParams})

Properties

config NorbixConfig
Mutable so credentials can be rotated at runtime via client.setApiKey(...) without rebuilding the Transport.
getter/setter pair
defaultPathParams Map<String, Object?>
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

close() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send({required String route, String method = 'GET', Map<String, Object?>? query, Object? body, Map<String, String>? headers, Map<String, Object?>? pathParams}) Future<Object?>
Send a request and return the parsed JSON body (Map, List, or null).
toString() String
A string representation of this object.
inherited

Operators

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