lithium\action\Response::_writeHeaders()

protected method

Writes raw headers to output.

Parameters

  • string|array $headers

    Either a raw header string, or an array of header strings. Use an array if a single header must be written multiple times with different values. Otherwise, additional values for duplicate headers will overwrite previous values.

  • integer $code

    Optional. If present, forces a specific HTTP response code. Used primarily in conjunction with the 'Location' header.

Returns

void

Source

	protected function _writeHeaders($headers, $code = null) {
		foreach ((array) $headers as $header) {
			$code ? header($header, false, $code) : header($header, false);
		}
	}