Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894842
PhutilGitHubResponse.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
882 B
Referenced Files
None
Subscribers
None
PhutilGitHubResponse.php
View Options
<?php
final
class
PhutilGitHubResponse
extends
Phobject
{
private
$status
;
private
$headers
;
private
$body
;
public
function
setStatus
(
$status
)
{
$this
->
status
=
$status
;
return
$this
;
}
public
function
getStatus
(
)
{
return
$this
->
status
;
}
public
function
setBody
(
array
$body
)
{
$this
->
body
=
$body
;
return
$this
;
}
public
function
getBody
(
)
{
return
$this
->
body
;
}
public
function
setHeaders
(
array
$headers
)
{
$this
->
headers
=
$headers
;
return
$this
;
}
public
function
getHeaders
(
)
{
return
$this
->
headers
;
}
public
function
getHeaderValue
(
$key
,
$default
=
null
)
{
$key
=
phutil_utf8_strtolower
(
$key
)
;
foreach
(
$this
->
headers
as
$header
)
{
list
(
$hkey
,
$value
)
=
$header
;
if
(
phutil_utf8_strtolower
(
$hkey
)
===
$key
)
{
return
$value
;
}
}
return
$default
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 20:34 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119052
Default Alt Text
PhutilGitHubResponse.php (882 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment