enable static method

void enable({
  1. String mode = 'reverse',
  2. String? upstreamBaseUrl,
  3. String? proxyBaseUrl,
  4. String proxyHttpPath = '/httpproxy',
  5. bool allowBadCertificates = false,
  6. List<Pattern>? skipPaths,
  7. List<Pattern>? skipHosts,
  8. List<String>? skipMethods,
  9. List<Pattern>? allowPaths,
  10. List<Pattern>? allowHosts,
  11. List<String>? allowMethods,
  12. List<Pattern> bypassHosts = const [],
})

Implementation

static void enable({
  String mode = 'reverse',
  String? upstreamBaseUrl,
  String? proxyBaseUrl,
  String proxyHttpPath = '/httpproxy',
  bool allowBadCertificates = false,
  List<Pattern>? skipPaths,
  List<Pattern>? skipHosts,
  List<String>? skipMethods,
  List<Pattern>? allowPaths,
  List<Pattern>? allowHosts,
  List<String>? allowMethods,
  List<Pattern> bypassHosts = const [],
}) {}