AppserverIo\Appserver\ServletEngine\Http\Part::getHeaders PHP Method

getHeaders() public method

Gets the values of the Part header with the given name.
public getHeaders ( string $name = null ) : array
$name string the header name whose values to return
return array
    public function getHeaders($name = null)
    {
        if (is_null($name)) {
            return $this->headers;
        } else {
            return $this->getHeader($name);
        }
    }