Package org.htmlunit

Interface WebConnection

    • Method Detail

      • getResponse

        WebResponse getResponse​(WebRequest request)
                         throws java.io.IOException
        Submits a request and retrieves a response.
        Parameters:
        request - the request
        Returns:
        the response to the request defined by the specified request
        Throws:
        java.io.IOException - if an IO error occurs
      • close

        void close()
            throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException