public class HttpHeader
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
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.