main
HTTPHeader header = new HTTPHeader name "Content-type" value "text/plain"
Class HTTPHeader represents header used by classes HTTPResponse and HTTPRequest.
Constructs a header with given name and value.
main
HTTPHeader header = new HTTPHeader name "Content-type" value "text/plain"
Set the name of the header.
main
HTTPHeader header = new HTTPHeader name "Content-typ" value "text/plain"
header.set header name to "Content-type"
Set the value of the header.
main
HTTPHeader header = new HTTPHeader name "Content-type" value "text"
header.set header value to "text/plain"
Returns the name of the header.
main
HTTPHeader header = new HTTPHeader name "Content-type" value "text/plain"
String headerName = header.get header name // headerName == "Content-type"
Returns the value of the header.
main
HTTPHeader header = new HTTPHeader name "Content-type" value "text/plain"
String headerValue = header.get header value // headerValue == "text/plain"