public class HttpHeader
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
getRequestHeader(java.net.HttpURLConnection connection) |
Gets the request header for the connection.
|
static java.lang.String |
getResponseHeader(java.net.HttpURLConnection conn) |
Gets the response header for the connection.
|
public static java.lang.String getRequestHeader(java.net.HttpURLConnection connection)
connection
- The connection to convert into an HTTP request header.public static java.lang.String getResponseHeader(java.net.HttpURLConnection conn)
conn
- The connection to convert into an HTTP response header.HTML Parser is an open source library released under LGPL.