BearFramework\App\Response\Headers

A repository for the response headers.
BearFramework\App\Response\Headers {

    
/* Methods */
    
public self delete string $name )
    public 
bool exists string $name )
    public 
BearFramework\App\Response\Header|null get string $name )
    public 
BearFramework\DataList|BearFramework\App\Response\Header[] getList void )
    public 
string|null getValue string $name )
    public 
BearFramework\App\Response\Header make ( [ string|null $name [, string|null $value ]] )
    public 
self set BearFramework\App\Response\Header $header )

}
Methods
public self delete ( string $name )
Deletes a header if exists.
public bool exists ( string $name )
Returns information whether a header with the name specified exists.
public BearFramework\App\Response\Header|null get ( string $name )
Returns a header or null if not found.
Returns a list of all headers.
public string|null getValue ( string $name )
Returns the value of the header or null if not found.
public BearFramework\App\Response\Header make ( [ string|null $name [, string|null $value ]] )
Constructs a new header and returns it.
public self set ( BearFramework\App\Response\Header $header )
Sets a header.
Details
Location: ~/src/App/Response/Headers.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.