Class UnlimitedHttpClient

java.lang.Object
masecla.modrinth4j.client.HttpClient
masecla.modrinth4j.client.instances.UnlimitedHttpClient

@Deprecated public class UnlimitedHttpClient extends HttpClient
Deprecated.
- Use RatelimitedHttpClient instead.
This class is used to connect to the Modrinth API without any rate limiting.
  • Constructor Details

    • UnlimitedHttpClient

      public UnlimitedHttpClient(UserAgent userAgent, String apiKey)
      Deprecated.
      Creates a new instance of the client.
      Parameters:
      userAgent - The user agent to use.
      apiKey - The API key to use.
    • UnlimitedHttpClient

      public UnlimitedHttpClient(UserAgent userAgent, String baseUrl, String apiKey)
      Deprecated.
      Creates a new instance of the client.
      Parameters:
      userAgent - The user agent to use.
      baseUrl - The base URL to use.
      apiKey - The API key to use.
    • UnlimitedHttpClient

      public UnlimitedHttpClient(UserAgent userAgent, String baseUrl, String apiKey, long timeout)
      Deprecated.
      Creates a new instance of the client.
      Parameters:
      userAgent - The user agent to use.
      baseUrl - The base URL to use.
      apiKey - The API key to use.
      timeout - The timeout to use in milliseconds.
  • Method Details

    • nextRequest

      public CompletableFuture<Void> nextRequest()
      Deprecated.
      Returns the next request.
      Specified by:
      nextRequest in class HttpClient
      Returns:
      A future that completes when the next request is allowed.