Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/response/AphrontResponse.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | final public function setDisableContentSecurityPolicy($disable) { | ||||
return $this; | return $this; | ||||
} | } | ||||
/* -( Content )------------------------------------------------------------ */ | /* -( Content )------------------------------------------------------------ */ | ||||
public function getContentIterator() { | public function getContentIterator() { | ||||
return array($this->buildResponseString()); | // By default, make sure responses are truly returning a string, not some | ||||
// kind of object that behaves like a string. | |||||
// We're going to remove the execution time limit before dumping the | |||||
// response into the sink, and want any rendering that's going to occur | |||||
// to happen BEFORE we release the limit. | |||||
amckinley: `/s/get//` | |||||
return array( | |||||
(string)$this->buildResponseString(), | |||||
); | |||||
} | } | ||||
public function buildResponseString() { | public function buildResponseString() { | ||||
throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
} | } | ||||
/* -( Metadata )----------------------------------------------------------- */ | /* -( Metadata )----------------------------------------------------------- */ | ||||
▲ Show 20 Lines • Show All 360 Lines • Show Last 20 Lines |
/s/get//