to String
Convert a JSONObject into an HTTP header. A request header must contain
{
Method: "POST" (for example),
"Request-URI": "/" (for example),
"HTTP-Version": "HTTP/1.1" (for example)
}
Content copied to clipboard
{
"HTTP-Version": "HTTP/1.1" (for example),
"Status-Code": "200" (for example),
"Reason-Phrase": "OK" (for example)
}
Content copied to clipboard
Return
An HTTP header string.
Parameters
jo
A JSONObject
Throws
if the object does not contain enough information.