/** * Specify a handler that will be called for all HTTP methods * * @param regex A regular expression * @param handler The handler to call */ public void allWithRegEx(String regex, Handler<HttpServerRequest> handler) { addRegEx(regex, handler, getBindings); addRegEx(regex, handler, putBindings); addRegEx(regex, handler, postBindings); addRegEx(regex, handler, deleteBindings); addRegEx(regex, handler, optionsBindings); }
/** * Specify a handler that will be called for a matching HTTP OPTIONS * * @param regex A regular expression * @param handler The handler to call */ public void optionsWithRegEx(String regex, Handler<HttpServerRequest> handler) { addRegEx(regex, handler, optionsBindings); }
/** * Specify a handler that will be called for a matching HTTP DELETE * * @param regex A regular expression * @param handler The handler to call */ public void deleteWithRegEx(String regex, Handler<HttpServerRequest> handler) { addRegEx(regex, handler, deleteBindings); }
/** * Specify a handler that will be called for a matching HTTP POST * * @param regex A regular expression * @param handler The handler to call */ public void postWithRegEx(String regex, Handler<HttpServerRequest> handler) { addRegEx(regex, handler, postBindings); }