Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93160806
MimeHandlerAdapter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Nov 26, 16:27
Size
761 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 16:27 (2 d)
Engine
blob
Format
Raw Data
Handle
22582459
Attached To
rPH Phabricator
MimeHandlerAdapter.php
View Options
<?php
/**
* Handlers are used to parse and serialize payloads for specific
* mime types. You can register a custom handler via the register
* method. You can also override a default parser in this way.
*/
namespace
Httpful\Handlers
;
class
MimeHandlerAdapter
{
public
function
__construct
(
array
$args
=
array
())
{
$this
->
init
(
$args
);
}
/**
* Initial setup of
* @param array $args
*/
public
function
init
(
array
$args
)
{
}
/**
* @param string $body
* @return mixed
*/
public
function
parse
(
$body
)
{
return
$body
;
}
/**
* @param mixed $payload
* @return string
*/
function
serialize
(
$payload
)
{
return
(
string
)
$payload
;
}
}
Event Timeline
Log In to Comment