Fields
Constructors
| Name | Description |
|---|---|
| HttpURLConnection(URL) | Constructor for the URLStreamHandler. |
Methods
| Name | Description |
|---|---|
| disconnect() | Close the connection to the server. |
| getFollowRedirects() | |
| getRequestMethod() | Get the request method. |
| getResponseCode() | Gets HTTP response status. |
| getResponseMessage() | Gets the HTTP response message, if any, returned along with the response code from a server. |
| setFollowRedirects(boolean) | Sets whether HTTP redirects (requests with response code 3xx) should be automatically followed by this class. |
| setRequestMethod(String) |
Set the method for the URL request, one of:
|
| usingProxy() | Indicates if the connection is going through a proxy. |