AdGuardHome/internal/aghhttp/header.go

26 lines
728 B
Go
Raw Normal View History

2022-09-29 17:10:03 +01:00
package aghhttp
// HTTP Headers
// HTTP header name constants.
//
// TODO(a.garipov): Remove unused.
const (
HdrNameAcceptEncoding = "Accept-Encoding"
HdrNameAccessControlAllowOrigin = "Access-Control-Allow-Origin"
2022-11-02 13:18:02 +00:00
HdrNameAltSvc = "Alt-Svc"
2022-09-29 17:10:03 +01:00
HdrNameContentEncoding = "Content-Encoding"
2022-10-03 16:52:20 +01:00
HdrNameContentType = "Content-Type"
2022-11-02 13:18:02 +00:00
HdrNameOrigin = "Origin"
2022-09-29 17:10:03 +01:00
HdrNameServer = "Server"
HdrNameTrailer = "Trailer"
HdrNameUserAgent = "User-Agent"
2022-11-02 13:18:02 +00:00
HdrNameVary = "Vary"
2022-09-29 17:10:03 +01:00
)
// HTTP header value constants.
const (
HdrValApplicationJSON = "application/json"
HdrValTextPlain = "text/plain"
)