options static method

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

Creates a test context with an OPTIONS request.

Implementation

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