Default set of headers added to all response objects.
By default the following headers are in this set:
Content-Type: text/plain; charset=utf-8 X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block
If the Server
header is added here and the serverHeader
is set as well then the value of serverHeader
takes precedence.
HttpHeaders get defaultResponseHeaders;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/HttpServer/defaultResponseHeaders.html