You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/rest/httpx/vars.go

32 lines
917 B
Go

4 years ago
package httpx
const (
// ApplicationJson means application/json.
ApplicationJson = "application/json; charset=utf-8"
// ContentEncoding means Content-Encoding.
4 years ago
ContentEncoding = "Content-Encoding"
// ContentSecurity means X-Content-Security.
4 years ago
ContentSecurity = "X-Content-Security"
// 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
4 years ago
)
const (
// CodeSignaturePass means signature verification passed.
4 years ago
CodeSignaturePass = iota
// CodeSignatureInvalidHeader means invalid header in signature.
4 years ago
CodeSignatureInvalidHeader
// CodeSignatureWrongTime means wrong timestamp in signature.
4 years ago
CodeSignatureWrongTime
// CodeSignatureInvalidToken means invalid token in signature.
4 years ago
CodeSignatureInvalidToken
)