Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109784444
AphrontPlainTextResponse.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
Wed, Apr 23, 09:19
Size
450 B
Mime Type
text/x-php
Expires
Fri, Apr 25, 09:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25757382
Attached To
rPH Phabricator
AphrontPlainTextResponse.php
View Options
<?php
/**
* @group aphront
*/
final
class
AphrontPlainTextResponse
extends
AphrontResponse
{
public
function
setContent
(
$content
)
{
$this
->
content
=
$content
;
return
$this
;
}
public
function
buildResponseString
()
{
return
$this
->
content
;
}
public
function
getHeaders
()
{
$headers
=
array
(
array
(
'Content-Type'
,
'text/plain; charset=utf-8'
),
);
return
array_merge
(
parent
::
getHeaders
(),
$headers
);
}
}
Event Timeline
Log In to Comment