Class UnlimitedHttpClient
java.lang.Object
masecla.modrinth4j.client.HttpClient
masecla.modrinth4j.client.instances.UnlimitedHttpClient
Deprecated.
This class is used to connect to the Modrinth API without any rate limiting.
-
Constructor Summary
ConstructorsConstructorDescriptionUnlimitedHttpClient(UserAgent userAgent, String apiKey) Deprecated.Creates a new instance of the client.UnlimitedHttpClient(UserAgent userAgent, String baseUrl, String apiKey) Deprecated.Creates a new instance of the client.UnlimitedHttpClient(UserAgent userAgent, String baseUrl, String apiKey, long timeout) Deprecated.Creates a new instance of the client. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the next request.Methods inherited from class masecla.modrinth4j.client.HttpClient
connect, connect, execute, interceptResponse
-
Constructor Details
-
UnlimitedHttpClient
Deprecated.Creates a new instance of the client.- Parameters:
userAgent- The user agent to use.apiKey- The API key to use.
-
UnlimitedHttpClient
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
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
Deprecated.Returns the next request.- Specified by:
nextRequestin classHttpClient- Returns:
- A future that completes when the next request is allowed.
-
RatelimitedHttpClientinstead.