You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
477 B
Go
24 lines
477 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 request")
|