diff options
author | xue <> | 2005-11-19 00:40:50 +0000 |
---|---|---|
committer | xue <> | 2005-11-19 00:40:50 +0000 |
commit | 8d1a3682ea999c928b317cbb382ff12fc9a32315 (patch) | |
tree | 49923682f4e358510cdb7fccc261ca3a1334a6c5 | |
parent | 95462e0eb735af4a54e8d72aed55bcc44efe0b52 (diff) |
-rw-r--r-- | framework/Web/THttpResponse.php | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php index 94f02b7c..58bbfb99 100644 --- a/framework/Web/THttpResponse.php +++ b/framework/Web/THttpResponse.php @@ -27,6 +27,11 @@ * By default, THttpResponse is registered with {@link TApplication} as the
* response module. It can be accessed via {@link TApplication::getResponse()}.
*
+ * THttpRequest may be configured in application configuration file as follows
+ * <module id="response" CacheExpire="20" CacheControl="nocache" BufferOutput="true" />
+ * where {@link getCacheExpire CacheExpire}, {@link getCacheControl CacheControl}
+ * and {@link getBufferOutput BufferOutput} are configurable properties of THttpResponse.
+ *
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Revision: $ $Date: $
* @package System.Web
@@ -34,23 +39,6 @@ */
class THttpResponse extends TComponent implements IModule, ITextWriter
{
- const STATUS_CONTINUE=100;
- const STATUS_SWITCHINGPROTOCOLS=101;
- const STATUS_OK=200;
- const STATUS_CREATED=201;
- const STATUS_ACCEPTED=202;
- const STATUS_NONAUTHORITATIVEINFORMATION=203;
- const STATUS_NOCONTENT=204;
- const STATUS_RESETCONTENT=205;
- const STATUS_PARTIALCONTENT=206;
- const STATUS_MULTIPLE_CHOICES=300;
- const STATUS_MOVEDPERMANENTLY=301;
- const STATUS_FOUND=302;
- const STATUS_SEEOTHER=303;
- const STATUS_NOTMODIFIED=304;
- const STATUS_USEPROXY=305;
- const STATUS_TEMPORARYREDIRECT=306;
- const STATUS_BADREQUEST=400;
/**
* @var string id of this module (response)
*/
|