Page MenuHomePhorge

AphrontPHPHTTPSink.php
No OneTemporary

Size
556 B
Referenced Files
None
Subscribers
None

AphrontPHPHTTPSink.php

<?php
/**
* Concrete HTTP sink which uses "echo" and "header()" to emit data.
*
* @group aphront
*/
final class AphrontPHPHTTPSink extends AphrontHTTPSink {
protected function emitHTTPStatus($code, $message = '') {
if ($code != 200) {
$header = "HTTP/1.0 {$code}";
if (strlen($message)) {
$header .= " {$message}";
}
header($header);
}
}
protected function emitHeader($name, $value) {
header("{$name}: {$value}", $replace = false);
}
protected function emitData($data) {
echo $data;
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Jun 18, 3:41 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
209258
Default Alt Text
AphrontPHPHTTPSink.php (556 B)

Event Timeline