library binary-response
Small extension to Symfony's HttpFoundation allowing decoupled, in-memory binary responses.
graefe/binary-response
Small extension to Symfony's HttpFoundation allowing decoupled, in-memory binary responses.
- Thursday, June 25, 2015
- by cgraefe
- Repository
- 1 Watchers
- 0 Stars
- 9 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
BinaryResponse
, (*1)
BinaryResponse is a small extension to Symfony's HttpFoundation component, allowing for decoupled, in-memory binary
responses. The BinaryResponse class behaves almost like the BinaryFileResponse class from HttpFoundation with its
built-in support for range requests. Instead of a regular file though, it takes any object implementing the
VirtualFileSource contract interface., (*2)
The InMemorySource provides a basic in-memory implementation of this contract:, (*3)
use Graefe\Net\Http\BinaryResponse;
use Graefe\Net\Http\BinaryResponse\InMemorySource;
$source = new InMemorySource('Any binary data, maybe from a BLOB column.');
$response = new BinaryResponse($source);
$reponse->send();
dev-master
9999999-dev
Small extension to Symfony's HttpFoundation allowing decoupled, in-memory binary responses.
Sources
Download
MIT
The Requires
The Development Requires
by
Christian Graefe
v0.1.0
0.1.0.0
Small extension to Symfony's HttpFoundation allowing decoupled, in-memory binary responses.
Sources
Download
MIT
The Requires
The Development Requires
by
Christian Graefe