Méthode | Description | |
---|---|---|
addHeader ( $name, $value ) : void | Adds HTTP header. | |
deleteCookie ( $name, $path = NULL, $domain = NULL, $secure = NULL ) : void | Deletes a cookie. | |
getCode ( ) : integer | Returns HTTP response code. | |
getHeader ( $header, $default = NULL ) : mixed | Returns value of an HTTP header. | |
getHeaders ( ) : array | Returns a list of headers to sent. | |
isSent ( ) : boolean | Checks if headers have been sent. | |
redirect ( $url, $code = self::S302_FOUND ) : void | Redirects to a new URL. | |
setCode ( $code ) : void | Sets HTTP response code. | |
setContentType ( $type, $charset = NULL ) : void | Sends a Content-type HTTP header. | |
setCookie ( $name, $value, $expire, $path = NULL, $domain = NULL, $secure = NULL, $httpOnly = NULL ) : void | Sends a cookie. | |
setExpiration ( $seconds ) : void | Sets the number of seconds before a page cached on a browser expires. | |
setHeader ( $name, $value ) : void | Sends a HTTP header and replaces a previous one. |
public deleteCookie ( $name, $path = NULL, $domain = NULL, $secure = NULL ) : void | ||
Résultat | void |
public getHeaders ( ) : array | ||
Résultat | array | (name => value) |
public setContentType ( $type, $charset = NULL ) : void | ||
Résultat | void |
public setExpiration ( $seconds ) : void | ||
Résultat | void |