mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
3bbc90ec24
* refactor: move json related header vars to internal * refactor: use header.ContentType
16 lines
280 B
Go
16 lines
280 B
Go
package httpc
|
|
|
|
import "errors"
|
|
|
|
const (
|
|
pathKey = "path"
|
|
formKey = "form"
|
|
headerKey = "header"
|
|
jsonKey = "json"
|
|
slash = "/"
|
|
colon = ':'
|
|
)
|
|
|
|
// ErrGetWithBody indicates that GET request with body.
|
|
var ErrGetWithBody = errors.New("HTTP GET should not have body")
|