3 namespace seekat\API\ContentType\Handler
;
6 use seekat\API\ContentType\Handler
;
8 final class Stream
implements Handler
{
12 function types() : array {
13 return ["application/octet-stream"];
18 * @param resource $data
20 function encode(mixed $data): Body
{
21 return new Body($data);
28 function decode(Body
$body) : mixed {
29 return $body->getResource();