whenHEAD
( service in module ngMockE2E
)
Creates a new backend definition for HEAD requests. For more info see when() .
url – {string|RegExp} –
HTTP url.
headers(optional) – {(Object|function(Object))=} –
HTTP headers.
{requestHandler}
– Returns an object with respond and passThrough methods that
control how a matched request is handled.