initialUrlRequest property

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(note: 'When loading an URL Request using "POST" method, headers are ignored.'), IOSPlatform(), MacOSPlatform(), WebPlatform(requiresSameOrigin: false), WindowsPlatform(), LinuxPlatform()])
URLRequest? initialUrlRequest
final

Initial url request that will be loaded.

Officially Supported Platforms/Implementations:

  • Android WebView:
    • When loading an URL Request using "POST" method, headers are ignored.
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe>
  • Windows WebView2
  • Linux WPE WebKit

Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      note:
          'When loading an URL Request using "POST" method, headers are ignored.',
    ),
    IOSPlatform(),
    MacOSPlatform(),
    WebPlatform(requiresSameOrigin: false),
    WindowsPlatform(),
    LinuxPlatform(),
  ],
)
final URLRequest? initialUrlRequest;