github.com/louisevanderlith/droxolite@v1.20.2/mix/mixer.go (about)

     1  package mix
     2  
     3  import (
     4  	"io"
     5  )
     6  
     7  //Mixer is used by the drx.ite to ApplyHeaders and Write the Response from the Reader
     8  type Mixer interface {
     9  	Reader() io.Reader
    10  	Headers() map[string]string
    11  }
    12  
    13  //DefaultHeaders returns a set of Headers that apply to all mixers
    14  func DefaultHeaders() map[string]string {
    15  	result := make(map[string]string)
    16  
    17  	result["Strict-Transport-Security"] = "max-age=31536000; includeSubDomains"
    18  	result["Access-Control-Allow-Credentials"] = "true"
    19  	result["Server"] = "kettle"
    20  	result["X-Content-Type-Options"] = "nosniff"
    21  
    22  	return result
    23  }