go-zero/rest/httpx/vars.go

32 lines
902 B
Go
Raw Normal View History

2020-07-26 17:09:05 +08:00
package httpx
const (
2021-03-01 19:15:35 +08:00
// ApplicationJson means application/json.
2020-07-26 17:09:05 +08:00
ApplicationJson = "application/json"
2021-03-01 19:15:35 +08:00
// ContentEncoding means Content-Encoding.
2020-07-26 17:09:05 +08:00
ContentEncoding = "Content-Encoding"
2021-03-01 19:15:35 +08:00
// ContentSecurity means X-Content-Security.
2020-07-26 17:09:05 +08:00
ContentSecurity = "X-Content-Security"
2021-03-01 19:15:35 +08:00
// ContentType means Content-Type.
ContentType = "Content-Type"
// KeyField means key.
KeyField = "key"
// SecretField means secret.
SecretField = "secret"
// TypeField means type.
TypeField = "type"
// CryptionType means cryption.
CryptionType = 1
2020-07-26 17:09:05 +08:00
)
const (
2021-03-01 19:15:35 +08:00
// CodeSignaturePass means signature verification passed.
2020-07-26 17:09:05 +08:00
CodeSignaturePass = iota
2021-03-01 19:15:35 +08:00
// CodeSignatureInvalidHeader means invalid header in signature.
2020-07-26 17:09:05 +08:00
CodeSignatureInvalidHeader
2021-03-01 19:15:35 +08:00
// CodeSignatureWrongTime means wrong timestamp in signature.
2020-07-26 17:09:05 +08:00
CodeSignatureWrongTime
2021-03-01 19:15:35 +08:00
// CodeSignatureInvalidToken means invalid token in signature.
2020-07-26 17:09:05 +08:00
CodeSignatureInvalidToken
)