Drupal\helper\Response\JsonFileResponse
A JSON PSR-7 response implementation.
Allows creating a response by passing a file URI to the constructor; by default, loads the data from the file as the body (assumes the file already contains serialized 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 | - |