BearFramework\App\Request\Headers

Provides information about the request headers
BearFramework\App\Request\Headers {

    
/* Methods */
    
public self delete string $name )
    public 
bool exists string $name )
    public 
BearFramework\App\Request\Header|null get string $name )
    public 
BearFramework\DataList|BearFramework\App\Request\Header[] getList void )
    public 
string|null getValue string $name )
    public 
BearFramework\App\Request\Header make ( [ string|null $name [, string|null $value ]] )
    public 
self set BearFramework\App\Request\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\Request\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\Request\Header make ( [ string|null $name [, string|null $value ]] )
Constructs a new header and returns it.
public self set ( BearFramework\App\Request\Header $header )
Sets a header.
Details
Location: ~/src/App/Request/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.