Exemple #1
0
 /**
  * Specify a handler that will be called for all HTTP methods
  *
  * @param pattern The simple pattern
  * @param handler The handler to call
  */
 public void all(String pattern, Handler<HttpServerRequest> handler) {
   addPattern(pattern, handler, getBindings);
   addPattern(pattern, handler, putBindings);
   addPattern(pattern, handler, postBindings);
   addPattern(pattern, handler, deleteBindings);
   addPattern(pattern, handler, optionsBindings);
 }
Exemple #2
0
 /**
  * Specify a handler that will be called for a matching HTTP GET
  *
  * @param pattern The simple pattern
  * @param handler The handler to call
  */
 public void get(String pattern, Handler<HttpServerRequest> handler) {
   addPattern(pattern, handler, getBindings);
 }
Exemple #3
0
 /**
  * Specify a handler that will be called for a matching HTTP OPTIONS
  *
  * @param pattern The simple pattern
  * @param handler The handler to call
  */
 public void options(String pattern, Handler<HttpServerRequest> handler) {
   addPattern(pattern, handler, optionsBindings);
 }
Exemple #4
0
 /**
  * Specify a handler that will be called for a matching HTTP DELETE
  *
  * @param pattern The simple pattern
  * @param handler The handler to call
  */
 public void delete(String pattern, Handler<HttpServerRequest> handler) {
   addPattern(pattern, handler, deleteBindings);
 }