Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98344086
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
Sun, Jan 12, 07:28
Size
550 B
Mime Type
text/x-php
Expires
Tue, Jan 14, 07:28 (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