Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98312801
FormHandler.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
Sat, Jan 11, 23:51
Size
550 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 23:51 (2 d)
Engine
blob
Format
Raw Data
Handle
23555408
Attached To
rPH Phabricator
FormHandler.php
View Options
<?php
/**
* Mime Type: application/x-www-urlencoded
* @author Nathan Good <me@nategood.com>
*/
namespace
Httpful\Handlers
;
class
FormHandler
extends
MimeHandlerAdapter
{
/**
* @param string $body
* @return mixed
*/
public
function
parse
(
$body
)
{
$parsed
=
array
();
parse_str
(
$body
,
$parsed
);
return
$parsed
;
}
/**
* @param mixed $payload
* @return string
*/
public
function
serialize
(
$payload
)
{
return
http_build_query
(
$payload
,
null
,
'&'
);
}
}
Event Timeline
Log In to Comment