go-zero/rest/httpx/vars.go

34 lines
970 B
Go
Raw Normal View History

2020-07-26 17:09:05 +08:00
package httpx
import "github.com/zeromicro/go-zero/rest/internal/header"
2020-07-26 17:09:05 +08:00
const (
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 = header.ContentType
// JsonContentType means application/json.
JsonContentType = header.JsonContentType
2021-03-01 19:15:35 +08:00
// 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
)