mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-19 14:21:58 +03:00
4d404b887f
Updates #4970. Squashed commit of the following: commit 10365d9c8474e9d9735f581fb32b2892b2153cc4 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Sep 30 14:23:06 2022 +0300 all: imp docs, names commit cff1103a0618a6430dc91e7e018febbf313c12ba Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Sep 30 14:02:38 2022 +0300 home: imp content-type check
23 lines
597 B
Go
23 lines
597 B
Go
package aghhttp
|
|
|
|
// HTTP Headers
|
|
|
|
// HTTP header name constants.
|
|
//
|
|
// TODO(a.garipov): Remove unused.
|
|
const (
|
|
HdrNameAcceptEncoding = "Accept-Encoding"
|
|
HdrNameAccessControlAllowOrigin = "Access-Control-Allow-Origin"
|
|
HdrNameContentEncoding = "Content-Encoding"
|
|
HdrNameContentType = "Content-Type"
|
|
HdrNameServer = "Server"
|
|
HdrNameTrailer = "Trailer"
|
|
HdrNameUserAgent = "User-Agent"
|
|
)
|
|
|
|
// HTTP header value constants.
|
|
const (
|
|
HdrValApplicationJSON = "application/json"
|
|
HdrValTextPlain = "text/plain"
|
|
)
|