Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ProviderName is provider name for install.
ProviderName = "http"
)
Variables ¶
This section is empty.
Functions ¶
func GetProviders ¶ added in v0.6.2
func GetProviders() map[string]cuexruntime.ProviderFn
GetProviders returns the providers
Types ¶
type DoParams ¶ added in v0.6.2
type DoParams = providertypes.Params[RequestVars]
DoParams is the params for http request
type DoReturns ¶ added in v0.6.2
type DoReturns = providertypes.Returns[ResponseVars]
DoReturns is the returns for http response
type RateLimiter ¶ added in v0.6.2
RateLimiter .
type Request ¶ added in v0.6.2
type Request struct {
Timeout string `json:"timeout,omitempty"`
Body string `json:"body,omitempty"`
Header map[string]string `json:"header,omitempty"`
Trailer map[string]string `json:"trailer,omitempty"`
RateLimiter *RateLimiter `json:"rateLimiter,omitempty"`
}
Request .
type RequestVars ¶ added in v0.6.2
type RequestVars struct {
Method string `json:"method"`
URL string `json:"url"`
Request *Request `json:"request,omitempty"`
TLSConfig *TLSConfig `json:"tls_config,omitempty"`
}
RequestVars is the vars for http request
Click to show internal directories.
Click to hide internal directories.