setCaptureHeaders static method Null safety
Capture HTTP header fields by providing a list of reguluar expressions strings that match the HTTP field keys.
Default: No HTTP header fields are captured. Keywords must be provided explicitly
- Parameters:
- regex: List of String to capture matching HTTP header field keywords
Implementation
static Future<void> setCaptureHeaders({required List<String> regex}) async {
await _channel
.invokeMethod('setCaptureHeaders', <String, dynamic>{'regex': regex});
}