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, $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, Dec 3, 2:45 PM (9 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
433618
Default Alt Text
AphrontPHPHTTPSink.php (556 B)

Event Timeline