Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895627
AphrontIsolatedHTTPSink.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
666 B
Referenced Files
None
Subscribers
None
AphrontIsolatedHTTPSink.php
View Options
<?php
/**
* Isolated HTTP sink for testing.
*
* @group aphront
*/
final
class
AphrontIsolatedHTTPSink
extends
AphrontHTTPSink
{
private
$status
;
private
$headers
;
private
$data
;
protected
function
emitHTTPStatus
(
$code
,
$message
=
''
)
{
$this
->
status
=
$code
;
}
protected
function
emitHeader
(
$name
,
$value
)
{
$this
->
headers
[
]
=
array
(
$name
,
$value
)
;
}
protected
function
emitData
(
$data
)
{
$this
->
data
.=
$data
;
}
public
function
getEmittedHTTPStatus
(
)
{
return
$this
->
status
;
}
public
function
getEmittedHeaders
(
)
{
return
$this
->
headers
;
}
public
function
getEmittedData
(
)
{
return
$this
->
data
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:46 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129083
Default Alt Text
AphrontIsolatedHTTPSink.php (666 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment