Dingo\Blueprint\Blueprint::appendHeaders PHP Method

appendHeaders() protected method

Append a headers subsection to an action.
protected appendHeaders ( string &$contents, array $headers ) : void
$contents string
$headers array
return void
    protected function appendHeaders(&$contents, array $headers)
    {
        $this->appendSection($contents, 'Headers', 1, 1);
        $contents .= $this->line();
        foreach ($headers as $header => $value) {
            $contents .= $this->line() . $this->tab(3) . sprintf('%s: %s', $header, $value);
        }
    }