WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Forex Trading Online forex trading platform
The HttpResponse

The HttpResponse

Class synopsis

HttpResponse
HttpResponse {
static void HttpResponse::capture ( void )
static int HttpResponse::getBufferSize ( void )
static bool HttpResponse::getCache ( void )
static string HttpResponse::getCacheControl ( void )
static string HttpResponse::getContentDisposition ( void )
static string HttpResponse::getContentType ( void )
static string HttpResponse::getData ( void )
static string HttpResponse::getETag ( void )
static string HttpResponse::getFile ( void )
static bool HttpResponse::getGzip ( void )
static mixed HttpResponse::getHeader ([ string $name ] )
static int HttpResponse::getLastModified ( void )
static string HttpResponse::getRequestBody ( void )
static resource HttpResponse::getRequestBodyStream ( void )
static array HttpResponse::getRequestHeaders ( void )
static resource HttpResponse::getStream ( void )
static double HttpResponse::getThrottleDelay ( void )
static string HttpResponse::guessContentType ( string $magic_file [, int $magic_mode=MAGIC_MIME ] )
static void HttpResponse::redirect ([ string $url [, array $params [, bool $session = FALSE [, int $status ]]]] )
static bool HttpResponse::send ([ bool $clean_ob = TRUE ] )
static bool HttpResponse::setBufferSize ( int $bytes )
static bool HttpResponse::setCache ( bool $cache )
static bool HttpResponse::setCacheControl ( string $control [, int $max_age = 0 [, bool $must_revalidate = TRUE ]] )
static bool HttpResponse::setContentDisposition ( string $filename [, bool $inline = FALSE ] )
static bool HttpResponse::setContentType ( string $content_type )
static bool HttpResponse::setData ( mixed $data )
static bool HttpResponse::setETag ( string $etag )
static bool HttpResponse::setFile ( string $file )
static bool HttpResponse::setGzip ( bool $gzip )
static bool HttpResponse::setHeader ( string $name [, mixed $value [, bool $replace = TRUE ]] )
static bool HttpResponse::setLastModified ( int $timestamp )
static bool HttpResponse::setStream ( resource $stream )
static bool HttpResponse::setThrottleDelay ( float $seconds )
static bool HttpResponse::status ( int $status )
}

Class Members

Properties

Static Properties
Modifiers Type Name Description
protected boolean cache whether caching the response should be attempted
protected boolean gzip whether the sent entity should be gzip'ed on the fly
protected string eTag the generated or custom ETag
protected integer lastModified the generated or custom timestamp of last modification
protected string cacheControl Cache-Control setting
protected string contentType the Content-Type of the sent entity
protected string contentDisposition the Content-Disposition of the sent entity
protected integer bufferSize the chunk buffer size used for throttling
protected double throttleDelay the seconds to delay when throttling

Predefined Constants

Type Name Description
integer REDIRECT guess applicable redirect method
integer REDIRECT_PERM permanent redirect (301 Moved permanently)
integer REDIRECT_FOUND standard redirect (302 Found)
integer REDIRECT_POST redirect applicable to POST requests (303 See other)
integer REDIRECT_PROXY proxy redirect (305 Use proxy)
integer REDIRECT_TEMP temporary redirect (307 Temporary Redirect)

Table of Contents