Class

HTTPResponseCustom

Package: IO\HTTP Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Regis VIARRE crowkait@phpboost.com Version: PHPBoost 5.2 - last update: 2017 03 23 Since: PHPBoost 3.0 - 2010 01 23 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: io/http/HTTPResponseCustom.class.php

Manages response via the HTTP protocol

Methods summary
public
# __construct( $status_code = 200 )
public
# set_header( string $name, $value )

Send header to client.

public
# set_default_attributes( string $url,… )

Set defaut headers for the response.

public
# 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...).

public
# clean_output( )

Clean the output buffer.

public string
# get_previous_ob_content( )

Returns the previous output buffer content.

public
# set_status_code( integer $status_code )

Send the status code

Constants summary
string PROTOCOL
# 'HTTP/1.1'