com.caucho.quercus.lib
Class HttpModule

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by com.caucho.quercus.lib.HttpModule
All Implemented Interfaces:
QuercusModule

public class HttpModule
extends AbstractQuercusModule

PHP HTTP functions


Field Summary
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
HttpModule()
           
 
Method Summary
static Value header(Env env, StringValue headerStr, boolean replace, long httpResponseCode)
          Adds a header.
static ArrayValue headers_list(Env env)
          Return a list of the headers that have been sent or are ready to send.
static boolean headers_sent(Env env, Value file, Value line)
          Return true if the headers have been sent.
static boolean setcookie(Env env, java.lang.String name, java.lang.String value, long expire, java.lang.String path, java.lang.String domain, boolean secure, boolean httpOnly)
          Sets a cookie
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpModule

public HttpModule()
Method Detail

header

public static Value header(Env env,
                           StringValue headerStr,
                           boolean replace,
                           long httpResponseCode)
Adds a header.


headers_list

public static ArrayValue headers_list(Env env)
Return a list of the headers that have been sent or are ready to send.


headers_sent

public static boolean headers_sent(Env env,
                                   Value file,
                                   Value line)
Return true if the headers have been sent.


setcookie

public static boolean setcookie(Env env,
                                java.lang.String name,
                                java.lang.String value,
                                long expire,
                                java.lang.String path,
                                java.lang.String domain,
                                boolean secure,
                                boolean httpOnly)
Sets a cookie