Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92830834
PhutilHTTPResponse.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, Nov 24, 01:09
Size
700 B
Mime Type
text/x-php
Expires
Tue, Nov 26, 01:09 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22524325
Attached To
rPHU libphutil
PhutilHTTPResponse.php
View Options
<?php
final
class
PhutilHTTPResponse
extends
Phobject
{
private
$headers
=
array
();
private
$body
;
private
$status
;
public
function
__construct
()
{
$this
->
body
=
new
PhutilRope
();
}
public
function
setHeaders
(
array
$headers
)
{
$this
->
headers
=
$headers
;
return
$this
;
}
public
function
getHeaders
()
{
return
$this
->
headers
;
}
public
function
setStatus
(
HTTPFutureResponseStatus
$status
)
{
$this
->
status
=
$status
;
return
$this
;
}
public
function
getStatus
()
{
return
$this
->
status
;
}
public
function
appendBody
(
$bytes
)
{
$this
->
body
->
append
(
$bytes
);
}
public
function
getBody
()
{
return
$this
->
body
->
getAsString
();
}
}
Event Timeline
Log In to Comment