packer-cn/vendor/github.com/ucloud/ucloud-sdk-go/private/protocol/http/defaults.go

22 lines
444 B
Go

package http
import (
"time"
)
type mimeType string
const (
mimeFormURLEncoded mimeType = "application/x-www-form-urlencoded"
mimeJSON mimeType = "application/json"
)
// DefaultHeaders defined default http headers
var DefaultHeaders = map[string]string{
"Content-Type": string(mimeFormURLEncoded),
// "X-SDK-VERSION": VERSION,
}
// DefaultTimeout is the default timeout of each request
var DefaultTimeout = 30 * time.Second