You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/vendor/github.com/ucloud/ucloud-sdk-go/private/protocol/http/defaults.go

22 lines
444 B

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