/li>
<li><em>status</em> assert response status code</li>
<li><em>header</em> assert that all given headers match (unspecified are ignored)</li>
</ul>


<p>When providing <em>res</em> you may then also pass a callback function
as the fourth argument for additional assertions.</p>

<p>Below are some examples:</p>

<pre><code>assert.response(server, {
    url: '/', timeout: 500
}, {
    body: 'foobar'
});

assert.response(server, {
    url: '/',
    method: 'GET'
},{
    body: '{"name":"tj"}',
    status: 200