Page MenuHomestyx hydra

AphrontIsolatedHTTPSink.php
No OneTemporary

AphrontIsolatedHTTPSink.php

<?php
/**
* Isolated HTTP sink for testing.
*/
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;
}
protected function isWritable() {
return true;
}
public function getEmittedHTTPStatus() {
return $this->status;
}
public function getEmittedHeaders() {
return $this->headers;
}
public function getEmittedData() {
return $this->data;
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Dec 3, 1:32 AM (6 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
433033
Default Alt Text
AphrontIsolatedHTTPSink.php (703 B)

Event Timeline