Files
go-zero/rest/httpc/vars.go

20 lines
409 B
Go
Raw Permalink Normal View History

2022-03-23 17:58:21 +08:00
package httpc
import "errors"
2022-03-23 17:58:21 +08:00
const (
pathKey = "path"
formKey = "form"
headerKey = "header"
jsonKey = "json"
slash = "/"
colon = ':'
2022-03-23 17:58:21 +08:00
)
var (
// ErrGetWithBody indicates that GET request with body.
ErrGetWithBody = errors.New("HTTP GET should not have body")
// ErrHeadWithBody indicates that HEAD request with body.
ErrHeadWithBody = errors.New("HTTP HEAD should not have body")
)