addHandler method

  1. @override
void addHandler(
  1. ProtocolID protocol,
  2. HandlerFunc handler
)
override

AddHandler registers the given handler to be invoked for an exact literal match of the given protocol ID string.

Implementation

@override
void addHandler(ProtocolID protocol, HandlerFunc handler) {
  addHandlerWithFunc(protocol, _fulltextMatch(protocol), handler);
}