ModifiedResourceResponse
class ModifiedResourceResponse extends Response implements ResourceResponseInterface (View source)
A response that does not contain cacheability metadata.
Used when resources are modified by a request: responses to unsafe requests (POST/PATCH/DELETE) can never be cached.
Traits
Properties
| protected mixed | $responseData | Response data that should be serialized. |
from ResourceResponseTrait |
Methods
__construct(mixed $data = NULL, int $status = 200, array $headers = [])
Constructor for ModifiedResourceResponse objects.
Details
mixed
getResponseData()
Returns response data that should be serialized.
__construct(mixed $data = NULL, int $status = 200, array $headers = [])
Constructor for ModifiedResourceResponse objects.