setHttpHeader abstract method

Future<void> setHttpHeader(
  1. Map<String, String> headers
)

Set http headers.

Available since: 3.8.0 Description: Call this function to set the http headers of the http network resource. Use cases: When the network resource needs to set special header information. When to call: It can be called after the engine by createEngine has been initialized and the media player has been created by createMediaPlayer. Restrictions: Called before the corresponding network resource is loaded.

  • headers Headers info.

Implementation

Future<void> setHttpHeader(Map<String, String> headers);