Page MenuHomestyx hydra

AphrontPHPHTTPSink.php
No OneTemporary

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) {
if ($code != 200) {
header("HTTP/1.0 {$code}");
}
}
protected function emitHeader($name, $value) {
header("{$name}: {$value}", $replace = false);
}
protected function emitData($data) {
echo $data;
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Feb 24, 6:59 PM (12 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
811090
Default Alt Text
AphrontPHPHTTPSink.php (444 B)

Event Timeline