2022-03-23 17:58:21 +08:00
|
|
|
package httpc
|
|
|
|
|
|
2022-04-11 11:00:28 +08:00
|
|
|
import "errors"
|
|
|
|
|
|
2022-03-23 17:58:21 +08:00
|
|
|
const (
|
2022-04-28 15:12:04 +08:00
|
|
|
pathKey = "path"
|
|
|
|
|
formKey = "form"
|
|
|
|
|
headerKey = "header"
|
|
|
|
|
jsonKey = "json"
|
|
|
|
|
slash = "/"
|
|
|
|
|
colon = ':'
|
2022-03-23 17:58:21 +08:00
|
|
|
)
|
2022-04-11 11:00:28 +08:00
|
|
|
|
2026-03-28 22:16:53 +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")
|
|
|
|
|
)
|