|
Previous Page |
Solar_Http_Response |
Next Page |
getHeader()
public
string|array
getHeader (
string $key
)
Returns the value of a single header.
Parameters
- (string)
$key: The header name.
Returns
- (string|array) A string if the header has only one value, or an array if the header has multiple values, or null if the header does not exist.
Description
Returns the value of a single header.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- __toString()
- _exception()
- _sendHeaders()
- apiVersion()
- display()
- dump()
- getContent()
- getCookie()
- getCookies()
- getHeader()
- getHeaders()
- getStatusCode()
- getStatusText()
- getVersion()
- locale()
- redirect()
- redirectNoCache()
- setContent()
- setCookie()
- setCookiesHttponly()
- setHeader()
- setStatusCode()
- setStatusText()
- setVersion()