Page MenuHomePhorge

AphrontIsolatedHTTPSink.php
No OneTemporary

Size
645 B
Referenced Files
None
Subscribers
None

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;
}
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
Tue, May 13, 12:32 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
100733
Default Alt Text
AphrontIsolatedHTTPSink.php (645 B)

Event Timeline