go-zero/rest/httpc/vars.go

18 lines
403 B
Go
Raw 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
contentType = "Content-Type"
2022-04-28 11:25:26 +08:00
applicationJson = "application/json; charset=utf-8"
2022-03-23 17:58:21 +08:00
)
// ErrGetWithBody indicates that GET request with body.
var ErrGetWithBody = errors.New("HTTP GET should not have body")