pushHandler

Registers a new handler of any kind (RequestHandler, NotificationHandler or ResponseHandler).

  1. void pushHandler(string method, F func)
    void
    pushHandler
    (
    F
    )
    (
    string method
    ,
    )
    if (
    isSomeFunction!F &&
    !is(F == RequestHandler)
    &&
    !is(F == NotificationHandler)
    &&
    !is(F == ResponseHandler)
    )
  2. void pushHandler(string id, string method)

Meta