Summary
- File
- Package hierarchy IO\HTTP
- Class hierarchy \HTTPResponseCustom
Manages response via the HTTP protocol
Manages response via the HTTP protocol
__construct( $status_code = 200)
| $status_code |
| None found |
set_header( $name, $value)
Send header to client.
| $name | ||
| $value |
| None found |
set_default_attributes()
Set defaut headers for the response.
| None found |
redirect(string $url, $message = '', $message_type = \MessageHelper::SUCCESS, $message_duration = 5)
Redirects the user to the URL and stops purely the script execution (database deconnexion.
..).
| string | $url | URL at which you want to redirect the user. |
| $message | ||
| $message_type | ||
| $message_duration |
| None found |
set_cookie(\HTTPCookie $cookie)
Set cookie for the application's client.
| \HTTPCookie | $cookie |
| None found |
delete_cookie(string $cookie_name)
Deletes the cookie
| string | $cookie_name | the name of the cookie to delete |
| None found |
clean_output()
Clean the output buffer.
| None found |
get_previous_ob_content() : string
Returns the previous output buffer content.
the previous output buffer content.
| None found |
set_status_code(integer $status_code)
Send the status code
| integer | $status_code |
| None found |