com.caucho.quercus.lib
Class HttpModule
java.lang.Object
com.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.HttpModule
- All Implemented Interfaces:
- QuercusModule
public class HttpModule
- extends AbstractQuercusModule
PHP HTTP functions
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpModule
public HttpModule()
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