PathHandler.addMapping
- PathHandler addMapping(Method method, string pattern, HttpRequestHandler handler)
- PathHandler addMapping(Method[] methods, string pattern, HttpRequestHandler handler)
- PathHandler addMapping(Method method, string[] patterns, HttpRequestHandler handler)
- PathHandler addMapping(Method[] methods, string[] patterns, HttpRequestHandler handler)
- PathHandler addMapping(string pattern, HttpRequestHandler handler)
- PathHandler addMapping(Method method, string pattern, F func)
- PathHandler addMapping(string pattern, F func)
Adds a mapping to this handler, such that requests which match the given method and pattern will be handed off to the given handler.
Overloaded variations of this method are defined for your convenience, which allow you to add a mapping for multiple HTTP methods and/or path patterns.