HttpUtil

@ApiStatus.Internal
class HttpUtil

Http util

Types

Link copied to clipboard
Http client consumer
Link copied to clipboard
Latest version
Link copied to clipboard
Plugin version
Link copied to clipboard
interface Result<T>
http result

Functions

Link copied to clipboard
open fun <T> client(@NotNull consumer: @NotNull HttpUtil.HttpClientConsumer<T>): @NotNull HttpUtil.Result<T>
Uses http client
Link copied to clipboard
@NotNull
open fun latestOf(@NotNull versions: @NotNull List<HttpUtil.PluginVersion>): @NotNull HttpUtil.LatestVersion
Gets the latest version from a version list
Link copied to clipboard
@NotNull
open fun versionList(): @NotNull HttpUtil.LatestVersion
Searches BetterModel's latest version
@NotNull
open fun versionList(@NotNull version: @NotNull MinecraftVersion): @NotNull HttpUtil.LatestVersion
Searches BetterModel's latest version compatible with current server