Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94981203
HTTPFutureResponseStatusParse.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, Dec 11, 22:21
Size
633 B
Mime Type
text/x-php
Expires
Fri, Dec 13, 22:21 (2 d)
Engine
blob
Format
Raw Data
Handle
22909978
Attached To
rPHU libphutil
HTTPFutureResponseStatusParse.php
View Options
<?php
/**
* @group futures
*/
final
class
HTTPFutureResponseStatusParse
extends
HTTPFutureResponseStatus
{
const
ERROR_MALFORMED_RESPONSE
=
1
;
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
"The remote host returned something other than an HTTP response: "
.
$this
->
rawResponse
;
}
}
Event Timeline
Log In to Comment