lithium\action\Response::__construct()

public method

Constructor. Adds config values to the public properties when a new object is created. Config options also include default values for Response::body() when called from Response::render().

Parameters

  • array $config

    The available configuration options are the following. Further options are inherited from the parent classes.

    • 'buffer' integer: Defaults to null
    • 'decode' boolean: Defaults to null.
    • 'location' array|string|null: Defaults to null.
    • 'request' object: Defaults to null.

Returns

void

Source

	public function __construct(array $config = []) {
		$defaults = [
			'buffer' => 8192,
			'location' => null,
			'request' => null,
			'decode' => false
		];
		parent::__construct($config + $defaults);
	}