Header Object
The header object includes the HTTP headers of a request or response. It is read-only for a response and writable for a request. It includes the following functions:
get_header_count. Gets the number of headers that the request or response contains.
get_string_value. Gets all headers as a single string.