FileResponse
class FileResponse
Traits
Properties
| Response|null | $raw | The raw HTTP response, if available for the provider. |
from HasRawResponse |
| string|null | $mime |
Methods
from
HasRawResponse
array
__serialize()
Prepare the instance for serialization, discarding the unserializable raw HTTP response.
from
HasRawResponse
__construct(string $id, string|null $mimeType = null, string|null $content = null)
Create a file response.
string|null
mimeType()
Get the MIME type for the file.
string|null
content()
Get the file's content.
Details
in
HasRawResponse at line 19
HasRawResponse
withRawResponse(Response|null $response)
Set the raw HTTP response.
in
HasRawResponse at line 29
array
__serialize()
Prepare the instance for serialization, discarding the unserializable raw HTTP response.
at line 18
__construct(string $id, string|null $mimeType = null, string|null $content = null)
Create a file response.
at line 29
string|null
mimeType()
Get the MIME type for the file.
at line 37
string|null
content()
Get the file's content.