addCustomHeader method
Officially Supported Platforms/Implementations:
- Android WebView 110+ (Official API - Profile.addCustomHeader):
- Requires WebViewFeature.CUSTOM_REQUEST_HEADERS.
Parameters - Officially Supported Platforms/Implementations:
containerId: all platformsheaderName: all platformsheaderValue: all platformsoriginRules: all platforms
Use the PlatformContainerController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<bool> addCustomHeader({
required String containerId,
required String headerName,
required String headerValue,
Set<String>? originRules,
}) => platform.addCustomHeader(
containerId: containerId,
headerName: headerName,
headerValue: headerValue,
originRules: originRules,
);