Spec-Zone.ru › Dart 2

dart:io

defaultResponseHeaders property

HttpHeaders defaultResponseHeaders

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.

Implementation

HttpHeaders get defaultResponseHeaders;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-io/HttpServer/defaultResponseHeaders.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API