Response constructor
Response()
Constructor
Implementation
Response() {
// Populate default headers
//
// This needs to explicitly manage these rather than accept them from
// the default values populated in a [HttpResponse]. This is so it can
// implement the [Proxy] request handler properly. When proxying requests,
// it must respond with the header values from the target response rather
// than the defaults from [HttpResponse].
_headers[_headerCanonicalName('x-content-type-options')] = ['nosniff'];
_headers[_headerCanonicalName('x-xss-protection')] = ['1; mode=block'];
_headers[_headerCanonicalName('x-frame-options')] = ['SAMEORIGIN'];
}