You are here

class Response in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response
  2. 8 vendor/symfony/browser-kit/Response.php \Symfony\Component\BrowserKit\Response
  3. 8 vendor/zendframework/zend-diactoros/src/Response.php \Zend\Diactoros\Response
  4. 8 vendor/zendframework/zend-stdlib/src/Response.php \Zend\Stdlib\Response
  5. 8 vendor/guzzlehttp/psr7/src/Response.php \GuzzleHttp\Psr7\Response
  6. 8 vendor/jcalderonzumba/gastonjs/src/NetworkTraffic/Response.php \Zumba\GastonJS\NetworkTraffic\Response
  7. 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Response.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Response
Same name and namespace in other branches
  1. 8.0 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Response.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Response

@author Kévin Dunglas <dunglas@gmail.com>

Hierarchy

Expanded class hierarchy of Response

1 file declares its use of Response
HttpFoundationFactoryTest.php in vendor/symfony/psr-http-message-bridge/Tests/Factory/HttpFoundationFactoryTest.php
1 string reference to 'Response'
form_test.routing.yml in core/modules/system/tests/modules/form_test/form_test.routing.yml
core/modules/system/tests/modules/form_test/form_test.routing.yml

File

vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Response.php, line 20

Namespace

Symfony\Bridge\PsrHttpMessage\Tests\Fixtures
View source
class Response extends Message implements ResponseInterface {
  private $statusCode;
  public function __construct($version = '1.1', array $headers = array(), StreamInterface $body = null, $statusCode = 200) {
    parent::__construct($version, $headers, $body);
    $this->statusCode = $statusCode;
  }
  public function getStatusCode() {
    return $this->statusCode;
  }
  public function withStatus($code, $reasonPhrase = '') {
    throw new \BadMethodCallException('Not implemented.');
  }
  public function getReasonPhrase() {
    throw new \BadMethodCallException('Not implemented.');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Message::$body private property
Message::$headers private property
Message::$version private property
Message::getBody public function Gets the body of the message. Overrides MessageInterface::getBody
Message::getHeader public function Retrieves a message header value by the given case-insensitive name. Overrides MessageInterface::getHeader
Message::getHeaderLine public function Retrieves a comma-separated string of the values for a single header. Overrides MessageInterface::getHeaderLine
Message::getHeaders public function Retrieves all message header values. Overrides MessageInterface::getHeaders
Message::getProtocolVersion public function Retrieves the HTTP protocol version as a string. Overrides MessageInterface::getProtocolVersion
Message::hasHeader public function Checks if a header exists by the given case-insensitive name. Overrides MessageInterface::hasHeader
Message::withAddedHeader public function Return an instance with the specified header appended with the given value. Overrides MessageInterface::withAddedHeader
Message::withBody public function Return an instance with the specified message body. Overrides MessageInterface::withBody
Message::withHeader public function Return an instance with the provided value replacing the specified header. Overrides MessageInterface::withHeader
Message::withoutHeader public function Return an instance without the specified header. Overrides MessageInterface::withoutHeader
Message::withProtocolVersion public function Return an instance with the specified HTTP protocol version. Overrides MessageInterface::withProtocolVersion
Response::$statusCode private property
Response::getReasonPhrase public function Gets the response reason phrase associated with the status code. Overrides ResponseInterface::getReasonPhrase
Response::getStatusCode public function Gets the response status code. Overrides ResponseInterface::getStatusCode
Response::withStatus public function Return an instance with the specified status code and, optionally, reason phrase. Overrides ResponseInterface::withStatus
Response::__construct public function Overrides Message::__construct