metadata

package
v1.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderContentType    = "Content-Type"
	HeaderUserAgent      = "User-Agent"
	HeaderAppkey         = "Appkey"
	HeaderTimestamp      = "Timestamp"
	HeaderSign           = "Sign"
	HeaderNonce          = "Nonce"
	HeaderAcceptLanguage = "Accept-Language"
	HeaderHttpTimeout    = "X-Request-Timeout"
	HeaderHttpTraceId    = "X-Trace-Id"

	DefaultContentTypeJson = "application/json;charset=utf-8"
	DefaultUserAgentVal    = "waterdrop"
	DefaultLocale          = "zh-CN"
	DefaultNonceLen        = 16

	LimitBodyBytes = 4096
)

Variables

This section is empty.

Functions

func GetTimeout

func GetTimeout(req *http.Request) time.Duration

GetTimeout get timeout from request header similar as grpc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL