Webiny\Component\Http\Request\Headers::getAll PHP Method

getAll() public method

Returns a list of all header variables.
public getAll ( ) : array
return array
    public function getAll()
    {
        return $this->headerBag->val();
    }

Usage Example

Example #1
0
 public function testGetAll()
 {
     $_SERVER['HTTP_HOST'] = "localhost";
     $headers = new Headers();
     $this->assertSame(['Host' => 'localhost'], $headers->getAll());
 }
All Usage Examples Of Webiny\Component\Http\Request\Headers::getAll