vars.go 484 B

1234567891011121314151617181920212223
  1. package httpx
  2. import "errors"
  3. const (
  4. ApplicationJson = "application/json"
  5. ContentEncoding = "Content-Encoding"
  6. ContentSecurity = "X-Content-Security"
  7. ContentType = "Content-Type"
  8. KeyField = "key"
  9. SecretField = "secret"
  10. TypeField = "type"
  11. CryptionType = 1
  12. )
  13. const (
  14. CodeSignaturePass = iota
  15. CodeSignatureInvalidHeader
  16. CodeSignatureWrongTime
  17. CodeSignatureInvalidToken
  18. )
  19. var ErrBodylessRequest = errors.New("not a POST|PUT|PATCH|DELETE request")