Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92841040
HTTPFutureParseResponseStatus.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, 03:35
Size
639 B
Mime Type
text/x-php
Expires
Tue, Nov 26, 03:35 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22524623
Attached To
rPHU libphutil
HTTPFutureParseResponseStatus.php
View Options
<?php
final
class
HTTPFutureParseResponseStatus
extends
HTTPFutureResponseStatus
{
const
ERROR_MALFORMED_RESPONSE
=
1
;
private
$rawResponse
;
public
function
__construct
(
$code
,
$raw_response
)
{
$this
->
rawResponse
=
$raw_response
;
parent
::
__construct
(
$code
);
}
protected
function
getErrorCodeType
(
$code
)
{
return
'Parse'
;
}
public
function
isError
()
{
return
true
;
}
public
function
isTimeout
()
{
return
false
;
}
protected
function
getErrorCodeDescription
(
$code
)
{
return
pht
(
'The remote host returned something other than an HTTP response: %s'
,
$this
->
rawResponse
);
}
}
Event Timeline
Log In to Comment