Class HttpUtil

java.lang.Object
net.minecraft.util.HttpUtil

public class HttpUtil extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • HttpUtil

      private HttpUtil()
  • Method Details

    • downloadFile

      public static Path downloadFile(Path p_314509_, URL p_314583_, Map<String,String> p_314414_, com.google.common.hash.HashFunction p_314462_, @Nullable com.google.common.hash.HashCode p_314495_, int p_314514_, Proxy p_314631_, HttpUtil.DownloadProgressListener p_314610_)
    • updateModificationTime

      private static void updateModificationTime(Path p_314996_)
    • hashFile

      private static com.google.common.hash.HashCode hashFile(Path p_314478_, com.google.common.hash.HashFunction p_314630_) throws IOException
      Throws:
      IOException
    • checkExistingFile

      private static boolean checkExistingFile(Path p_314420_, com.google.common.hash.HashFunction p_314503_, com.google.common.hash.HashCode p_314584_) throws IOException
      Throws:
      IOException
    • cachedFilePath

      private static Path cachedFilePath(Path p_314479_, com.google.common.hash.HashCode p_314627_)
    • downloadAndHash

      private static com.google.common.hash.HashCode downloadAndHash(com.google.common.hash.HashFunction p_314429_, int p_314497_, HttpUtil.DownloadProgressListener p_314419_, InputStream p_314557_, Path p_314618_) throws IOException
      Throws:
      IOException
    • getAvailablePort

      public static int getAvailablePort()
    • isPortAvailable

      public static boolean isPortAvailable(int p_259872_)