Adds a GET request handler for the specified path to the {@link Javalin} instance.
The method can only be called inside a {@link Javalin#routes(EndpointGroup)}.

@see <a href="https://javalin.io/documentation#handlers">Handlers in docs</a>
555011
public static void get(@NotNull String path, @NotNull Handler handler) {
        staticInstance().get(prefixPath(path), handler);
    }
403779
private GenericUrl getURL(final String path) {
		final StringBuilder builder = new StringBuilder(getHostname());
		builder.append(path);
		return new GenericUrl(builder.toString());
	}
1159202
private URI addEndPoint(String endPoint) throws URISyntaxException {

        if (StringUtils.isEmpty(endPoint) || endPoint.equals("/")) {
            return this.baseUri;
        }

        if (this.baseUri.getPath().endsWith("/") || endPoint.startsWith("/")) {
            endPoint = this.baseUri.getPath() + endPoint;
        } else {
            endPoint = this.baseUri.getPath() + "/" + endPoint;
        }

        URI uri = null;

        URIBuilder builder = new URIBuilder();

        builder.setScheme(this.baseUri.getScheme());
        builder.setHost(this.baseUri.getHost());
        builder.setPort(this.baseUri.getPort());
        builder.setPath(endPoint);

        uri = builder.build();
        return uri;
    }
966318
def add_url_rule(self, route, endpoint, handler):
        
        self.app.add_url_rule(route, endpoint, handler)
1245613
public Blade after(@NonNull String path, @NonNull RouteHandler handler) {
        this.routeMatcher.addRoute(path, handler, HttpMethod.AFTER);
        return this;
    }
853590
function expressGetHandler(endpoint) {
  return function(req, res) {
    // We have to handle request parameters differently since they're not in the
    // request body.
    rpc.getMethod(endpoint.name)({request: req.params}, function(err, doc) {
      res.send(doc);
      res.end();
    });
  };
}
83495
public MockResponse handleGet(String path) {
        MockResponse response = new MockResponse();

        String body = doGet(path);
        if (body == null) {
            response.setResponseCode(404);
        } else {
            response.setResponseCode(200);
            response.setBody(body);
        }
        return response;
    }
256300
public static void post(@NotNull String path, @NotNull Handler handler) {
        staticInstance().post(prefixPath(path), handler);
    }
1227951
public Javalin options(@NotNull String path, @NotNull Handler handler) {
        return addHandler(HandlerType.OPTIONS, path, handler);
    }
736265
public Javalin after(@NotNull String path, @NotNull Handler handler) {
        return addHandler(HandlerType.AFTER, path, handler);
    }
1011014
public static Route registerEndpoint(String method_uri, Class<? extends RestApiHandler> handler_clz) {
    try {
      RestApiHandler handler = handler_clz.newInstance();
      return registerEndpoint(handler.name(), method_uri, handler_clz, null, handler.help());
    } catch (Exception e) {
      throw H2O.fail(e.getMessage());
    }
  }
896913
public Javalin wsBefore(@NotNull String path, @NotNull Consumer<WsHandler> wsHandler) {
        return staticInstance().wsBefore(prefixPath(path), wsHandler);
    }
79506
public Javalin head(@NotNull String path, @NotNull Handler handler) {
        return addHandler(HandlerType.HEAD, path, handler);
    }
232517
public Javalin head(@NotNull String path, @NotNull Handler handler, @NotNull Set<Role> permittedRoles) {
        return addHandler(HandlerType.HEAD, path, handler, permittedRoles);
    }
579749
public Blade webSocket(@NonNull String path, @NonNull WebSocketHandler handler) {
        this.routeMatcher.addWebSocket(path,handler);
        return this;
    }
1369356
public Javalin post(@NotNull String path, @NotNull Handler handler) {
        return addHandler(HandlerType.POST, path, handler);
    }
158245
public ISO9660Directory addPath(String path) throws HandlerException {
        ISO9660Directory dir;
        if (path.indexOf(File.separator) == -1) {
            // Path is a directory - add it if not already listed
            return checkDirectory(path);
        }

        // Add path recursively
        int frontSeparatorIndex = path.indexOf(File.separator);
        String dirName = path.substring(0, frontSeparatorIndex);
        dir = checkDirectory(dirName);
        String rest = path.substring(frontSeparatorIndex + 1);
        dir = dir.addPath(rest);

        return dir;
    }