vars.go 902 B

12345678910111213141516171819202122232425262728293031
  1. package httpx
  2. const (
  3. // ApplicationJson means application/json.
  4. ApplicationJson = "application/json"
  5. // ContentEncoding means Content-Encoding.
  6. ContentEncoding = "Content-Encoding"
  7. // ContentSecurity means X-Content-Security.
  8. ContentSecurity = "X-Content-Security"
  9. // ContentType means Content-Type.
  10. ContentType = "Content-Type"
  11. // KeyField means key.
  12. KeyField = "key"
  13. // SecretField means secret.
  14. SecretField = "secret"
  15. // TypeField means type.
  16. TypeField = "type"
  17. // CryptionType means cryption.
  18. CryptionType = 1
  19. )
  20. const (
  21. // CodeSignaturePass means signature verification passed.
  22. CodeSignaturePass = iota
  23. // CodeSignatureInvalidHeader means invalid header in signature.
  24. CodeSignatureInvalidHeader
  25. // CodeSignatureWrongTime means wrong timestamp in signature.
  26. CodeSignatureWrongTime
  27. // CodeSignatureInvalidToken means invalid token in signature.
  28. CodeSignatureInvalidToken
  29. )