HttpUtils (IcedTea-Web: NetX )
Keywords: net.sourceforge.jnlp.util.HttpUtils class
Date: 2021-05-10

net.sourceforge.jnlp.util

## Class HttpUtils

- java.lang.Object
- - net.sourceforge.jnlp.util.HttpUtils

-     public class HttpUtils
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HttpUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `consumeAndCloseConnection(java.net.HttpURLConnection c)` Ensure a HttpURLConnection is fully read, required for correct behavior
    `static void` | `consumeAndCloseConnectionSilently(java.net.HttpURLConnection c)` Ensure a HttpURLConnection is fully read, required for correct behavior.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HttpUtils

          public HttpUtils()

  - ### Method Detail

    - #### consumeAndCloseConnectionSilently

          public static void consumeAndCloseConnectionSilently(java.net.HttpURLConnection c)

      Ensure a HttpURLConnection is fully read, required for correct behavior. Captured IOException is consumed and printed
      Parameters:
        `c` - the connection to be closed silently

    - #### consumeAndCloseConnection

          public static void consumeAndCloseConnection(java.net.HttpURLConnection c)
                                                throws java.io.IOException

      Ensure a HttpURLConnection is fully read, required for correct behavior
      Parameters:
        `c` - connection to be closed
      Throws:
        `java.io.IOException` - if connection fade

Submit a bug or feature