2020-07-26 17:09:05 +08:00
|
|
|
package httpx
|
|
|
|
|
2020-08-12 14:31:11 +08:00
|
|
|
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:31:11 +08:00
|
|
|
|
2020-08-12 14:37:34 +08:00
|
|
|
var ErrBodylessRequest = errors.New("not a POST|PUT|PATCH|DELETE request")
|