Skip to content

Response: __construct Example

Terry L edited this page Jun 20, 2020 · 2 revisions

Shieldon\Psr7\Message\Response

Extends Message.

__construct

  • param int status = 200 Response HTTP status code.
  • param array headers = [] Response headers.
  • param StreamInterface|string body = "" Response body.
  • param string version = "1.1" Response protocol version.
  • param string reason = "OK" Reasponse HTTP reason phrase.

Example:

$response = new \Shieldon\Psr7\Response();
Clone this wiki locally