mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
24 lines
484 B
Go
24 lines
484 B
Go
package httpx
|
|
|
|
import "errors"
|
|
|
|
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
|
|
)
|
|
|
|
var ErrBodylessRequest = errors.New("not a POST|PUT|PATCH|DELETE request")
|