Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106301517
HTTPError.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
Mon, Mar 24, 15:21
Size
602 B
Mime Type
text/x-php
Expires
Wed, Mar 26, 15:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25163553
Attached To
rPH Phabricator
HTTPError.php
View Options
<?php
namespace
RESTful\Exceptions
;
/**
* Indicates an HTTP level error has occurred. The underlying HTTP response is
* stored as response member. The response payload fields if any are stored as
* members of the same name.
*
* @see \Httpful\Response
*/
class
HTTPError
extends
Base
{
public
$response
;
public
function
__construct
(
$response
)
{
$this
->
response
=
$response
;
$this
->
_objectify
(
$this
->
response
->
body
);
}
protected
function
_objectify
(
$fields
)
{
foreach
(
$fields
as
$key
=>
$val
)
{
$this
->
$key
=
$val
;
}
}
}
Event Timeline
Log In to Comment