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-11 11:00:28 +08:00
|
|
|
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
|
|
|
)
|
2022-04-11 11:00:28 +08:00
|
|
|
|
|
|
|
// ErrGetWithBody indicates that GET request with body.
|
|
|
|
var ErrGetWithBody = errors.New("HTTP GET should not have body")
|