typo, parameter and type fixes
[mdref/mdref-http] / http / Env / setResponseHeader.md
1 # static bool http\Env::setResponseHeader(string $header_name[, mixed $header_value = NULL[, int $response_code = 0[, bool $replace = true]]])
2
3 Set a response header, either replacing a prior set header, or appending the new header value, depending on $replace.
4
5 If no $header_value is specified, or $header_value is NULL, then a previously set header with the same key will be deleted from the list.
6
7 If $response_code is not 0, the response status code is updated accordingly.
8
9 ## Params:
10
11 * string $header_name, the name of the response header.
12 * Optional mixed $header_value, the header value.
13 * Optional int $response_code, any HTTP response status code to set.
14 * Optional bool $replace, whether to replace a previously set response header with the same name.
15
16 ## Returns:
17
18 * bool Success.