class Response in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response
- 8 vendor/symfony/browser-kit/Response.php \Symfony\Component\BrowserKit\Response
- 8 vendor/zendframework/zend-diactoros/src/Response.php \Zend\Diactoros\Response
- 8 vendor/zendframework/zend-stdlib/src/Response.php \Zend\Stdlib\Response
- 8 vendor/guzzlehttp/psr7/src/Response.php \GuzzleHttp\Psr7\Response
- 8 vendor/jcalderonzumba/gastonjs/src/NetworkTraffic/Response.php \Zumba\GastonJS\NetworkTraffic\Response
- 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Response.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Response
Same name and namespace in other branches
- 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
- class \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Message implements MessageInterface
- class \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Response implements ResponseInterface
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\FixturesView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Message:: |
private | property | ||
Message:: |
private | property | ||
Message:: |
private | property | ||
Message:: |
public | function |
Gets the body of the message. Overrides MessageInterface:: |
|
Message:: |
public | function |
Retrieves a message header value by the given case-insensitive name. Overrides MessageInterface:: |
|
Message:: |
public | function |
Retrieves a comma-separated string of the values for a single header. Overrides MessageInterface:: |
|
Message:: |
public | function |
Retrieves all message header values. Overrides MessageInterface:: |
|
Message:: |
public | function |
Retrieves the HTTP protocol version as a string. Overrides MessageInterface:: |
|
Message:: |
public | function |
Checks if a header exists by the given case-insensitive name. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance with the specified header appended with the given value. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance with the specified message body. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance with the provided value replacing the specified header. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance without the specified header. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance with the specified HTTP protocol version. Overrides MessageInterface:: |
|
Response:: |
private | property | ||
Response:: |
public | function |
Gets the response reason phrase associated with the status code. Overrides ResponseInterface:: |
|
Response:: |
public | function |
Gets the response status code. Overrides ResponseInterface:: |
|
Response:: |
public | function |
Return an instance with the specified status code and, optionally, reason phrase. Overrides ResponseInterface:: |
|
Response:: |
public | function |
Overrides Message:: |