refactor: move json related header vars to internal (#1840)
* refactor: move json related header vars to internal * refactor: use header.ContentType
This commit is contained in:
@@ -3,14 +3,12 @@ package httpc
|
||||
import "errors"
|
||||
|
||||
const (
|
||||
pathKey = "path"
|
||||
formKey = "form"
|
||||
headerKey = "header"
|
||||
jsonKey = "json"
|
||||
slash = "/"
|
||||
colon = ':'
|
||||
contentType = "Content-Type"
|
||||
applicationJson = "application/json; charset=utf-8"
|
||||
pathKey = "path"
|
||||
formKey = "form"
|
||||
headerKey = "header"
|
||||
jsonKey = "json"
|
||||
slash = "/"
|
||||
colon = ':'
|
||||
)
|
||||
|
||||
// ErrGetWithBody indicates that GET request with body.
|
||||
|
||||
Reference in New Issue
Block a user