mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-25 02:22:57 +01:00
Adding getAll() to HeaderCollection for better compatibility with Collection
This commit is contained in:
parent
598567d166
commit
0676a36332
@ -116,4 +116,14 @@ class HeaderCollection implements \IteratorAggregate, \Countable, \ArrayAccess,
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an array of header objects
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAll()
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user