go-zero/rest/httpx/vars.go

24 lines
484 B
Go
Raw Normal View History

2020-07-26 17:09:05 +08:00
package httpx
import "errors"
2020-07-26 17:09:05 +08:00
const (
ApplicationJson = "application/json"
ContentEncoding = "Content-Encoding"
ContentSecurity = "X-Content-Security"
ContentType = "Content-Type"
KeyField = "key"
SecretField = "secret"
TypeField = "type"
CryptionType = 1
)
const (
CodeSignaturePass = iota
CodeSignatureInvalidHeader
CodeSignatureWrongTime
CodeSignatureInvalidToken
)
2020-08-12 14:37:34 +08:00
var ErrBodylessRequest = errors.New("not a POST|PUT|PATCH|DELETE request")