projects
/
m6w6
/
seekat
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
PHP8
[m6w6/seekat]
/
lib
/
API
/
ContentType
/
Handler.php
1
<
?php
2
3
namespace
seekat\API\ContentType
;
4
5
use
http\Message\Body
;
6
7
interface
Handler
{
8
/**
9
* List handled types
10
* @return array
11
*/
12
function
types
() :
array
;
13
14
/**
15
* Decode HTTP message body
16
* @param Body $body
17
* @return mixed
18
*/
19
function
decode
(
Body
$body
);
20
21
/**
22
* Encode HTTP message body
23
* @param $data
24
* @return Body
25
*/
26
function
encode
(
$data
) :
Body
;
27
}