unfilterEndpoint method

void unfilterEndpoint(
  1. String endpoint
)

unfilters an endpoint. To unfilter an endpoint which ended in '', provide the '' here too.

Implementation

void unfilterEndpoint(String endpoint) {
  if (endpoint.endsWith('*')) {
    //then this is a path and we want to glob match
    this._registeredPaths.remove(endpoint.substring(0, endpoint.length - 1));
  } else {
    this._registeredUris.remove(endpoint);
  }
}