Drupal\helper\Response\JsonEncodeResponse
A JSON PSR-7 response implementation.
Allows creating a response by passing data to the constructor; by default, serializes the data to JSON, sets a status code of 200 and sets the Content-Type header to application/json.
Implements:
Psr\Http\Message\MessageInterface, Psr\Http\Message\ResponseInterface
Extend:
GuzzleHttp\Psr7\Response
Methods
| Name | Description |
|---|---|
Inherited methods
| Name | Description |
|---|---|
| __construct | - |
| getBody | - |
| getHeader | - |
| getHeaderLine | - |
| getHeaders | - |
| getProtocolVersion | - |
| getReasonPhrase | - |
| getStatusCode | - |
| hasHeader | - |
| withAddedHeader | - |
| withBody | - |
| withHeader | - |
| withProtocolVersion | - |
| withStatus | - |
| withoutHeader | - |