requestHeadersNeverPass constant

List<String> const requestHeadersNeverPass

Headers in the request which are never passed through to the target.

Important: these must be in all lowercase, otherwise matching won't work.

Implementation

static const List<String> requestHeadersNeverPass = [
  'host', // host will be recreated for the request
  'connection', // HTTP/1.1 keep-alive is not supported
  'keep-alive',
  'te',
  'upgrade',
  'upgrade-insecure-requests', // should this be included or not?
  'proxy-authorization',
];