dvUseHttpTransport function

DVHttpTransport? dvUseHttpTransport(
  1. DVHttpTransport? transport
)

Installs transport as the default, returning the previous one.

This is the seam the Rust client attaches through, and the seam a test uses to assert what was negotiated without a network.

Implementation

DVHttpTransport? dvUseHttpTransport(DVHttpTransport? transport) {
  final previous = _transportOverride;
  _transportOverride = transport;
  return previous;
}