default_http_header_plugin

A flutter plugin for getting default http headers.

Only iOS code at present.

Include Headers:

  • accept-language
  • user-agent

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Reference: accept-language rfc: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4

Get default accept-language in android:
https://stackoverflow.com/a/42427199

Libraries

default_http_header_plugin