1package webfinger
2
3import "net/http"
4
5// Middleware constant keys
6const (
7	NoCacheMiddleware     string = "NoCache"
8	CorsMiddleware        string = "Cors"
9	ContentTypeMiddleware string = "Content-Type"
10)
11
12// noCache sets the headers to disable caching
13func noCache(w http.ResponseWriter, r *http.Request) {
14	w.Header().Set("Cache-Control", "no-cache")
15	w.Header().Set("Pragma", "no-cache")
16}
17
18// jrdSetup sets the content-type
19func jrdSetup(w http.ResponseWriter, r *http.Request) {
20	w.Header().Set("Content-Type", "application/jrd+json")
21}
22