transportMatches static method

bool transportMatches(
  1. HttpTransportType? requestedTransport,
  2. HttpTransportType actualTransport
)

Implementation

static bool transportMatches(HttpTransportType? requestedTransport,
    HttpTransportType actualTransport) {
  return (requestedTransport == null) ||
      (actualTransport == requestedTransport);
}