head static method

Context head(
  1. String path, {
  2. Map<String, String>? headers,
  3. String remoteIp = '127.0.0.1',
})

Creates a test context with a HEAD request.

Implementation

static Context head(
  String path, {
  Map<String, String>? headers,
  String remoteIp = '127.0.0.1',
}) {
  return _create('HEAD', path, headers: headers, remoteIp: remoteIp);
}