src/main/php/routing/RoutingAnnotations.php
public function headers(): array
    {
        return array_map(
                function($header)
                {
                    return new Header($header->getName(), $header->getDescription());
                },
                $this->annotations->named('Header')
        );
    }
public function headers(): array
    {
        return array_map(
                function($header)
                {
                    return new Header($header->getName(), $header->getDescription());
                },
                $this->annotations->named('Header')
        );
    }
public function headers ( ) : array { return array_map ( function ( $ header ) { return new Header ( $ header -> getName ( ) , $ header -> getDescription ( ) ) ; } , $ this -> annotations -> named ( 'Header' ) ) ; }
returns list of headers on this route

@return  \stubbles\webapp\routing\api\Header[]
@since   6.1.0
returns list of headers on this route