HttpMessage::addHeaders
(PECL pecl_http >= 0.10.0)
HttpMessage::addHeaders — Add headers
Description
public
void HttpMessage::addHeaders
( array
$headers
[, bool $append
= false
] )Add headers. If append is true, headers with the same name will be separated, else overwritten.
Parameters
-
headers
-
associative array containing the additional HTTP headers to add to the messages existing headers
-
append
-
if true, and a header with the same name of one to add exists already, this respective header will be converted to an array containing both header values, otherwise it will be overwritten with the new header value
Return Values
Returns TRUE
on success or FALSE
on failure.
[an error occurred while processing the directive]
- Функция HttpMessage::addHeaders() - Add headers
- Функция HttpMessage::__construct() - HttpMessage constructor
- Функция HttpMessage::detach() - Detach HttpMessage
- Функция HttpMessage::factory() - Create HttpMessage from string
- Функция HttpMessage::fromEnv() - Create HttpMessage from environment
- Функция HttpMessage::fromString() - Create HttpMessage from string
- Функция HttpMessage::getBody() - Get message body
- Функция HttpMessage::getHeader() - Get header
- Функция HttpMessage::getHeaders() - Get message headers
- Функция HttpMessage::getHttpVersion() - Get HTTP version
- Функция HttpMessage::getParentMessage() - Get parent message
- Функция HttpMessage::getRequestMethod() - Get request method
- Функция HttpMessage::getRequestUrl() - Get request URL
- Функция HttpMessage::getResponseCode() - Get response code
- Функция HttpMessage::getResponseStatus() - Get response status
- Функция HttpMessage::getType() - Get message type
- Функция HttpMessage::guessContentType() - Guess content type
- Функция HttpMessage::prepend() - Prepend message(s)
- Функция HttpMessage::reverse() - Reverse message chain
- Функция HttpMessage::send() - Send message
- Функция HttpMessage::setBody() - Set message body
- Функция HttpMessage::setHeaders() - Set headers
- Функция HttpMessage::setHttpVersion() - Set HTTP version
- Функция HttpMessage::setRequestMethod() - Set request method
- Функция HttpMessage::setRequestUrl() - Set request URL
- Функция HttpMessage::setResponseCode() - Set response code
- Функция HttpMessage::setResponseStatus() - Set response status
- Функция HttpMessage::setType() - Set message type
- Функция HttpMessage::toMessageTypeObject() - Create HTTP object regarding message type
- Функция HttpMessage::toString() - Get string representation
Коментарии
404 Not Found