Class HttpAPI

java.lang.Object
net.notcoded.codelib.util.http.HttpAPI

public class HttpAPI extends Object
  • Field Details

    • userAgent

      public static String userAgent
  • Constructor Details

    • HttpAPI

      public HttpAPI()
  • Method Details

    • get

      public static String get(@NotNull @NotNull URL url)
      Sends a GET request to an url.
      Parameters:
      url - The url, e.g. https://notcoded.is-a.dev/
      Returns:
      The response.