Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewHTTPClient = defaultHTTPClientFactory
NewHTTPClient is a factory of HTTPClient
View Source
var ( Plugin = taskplugin.New("http", "0.7", exec, taskplugin.WithConfig(validConfig, HTTPConfig{}), ) )
the HTTP plugin performs an HTTP call
Functions ¶
func ExecutorMetadata ¶
func ExecutorMetadata() string
ExecutorMetadata generates json schema to validate the metadata returned by the http executor
Types ¶
type HTTPClient ¶ added in v1.2.1
HTTPClient is an interface for decoupling http.Client
type HTTPClientConfig ¶ added in v1.2.1
HTTPClientConfig is a set of options used to initialize a HTTPClient
type HTTPConfig ¶
type HTTPConfig struct {
URL string `json:"url"`
Method string `json:"method"`
Body string `json:"body,omitempty"`
Headers []Header `json:"headers,omitempty"`
TimeoutSeconds string `json:"timeout_seconds,omitempty"`
Auth Auth `json:"auth,omitempty"`
DenyRedirects string `json:"deny_redirects,omitempty"`
Parameters []Parameter `json:"parameters,omitempty"`
TrimPrefix string `json:"trim_prefix,omitempty"`
}
HTTPConfig is the configuration needed to perform an HTTP call
Click to show internal directories.
Click to hide internal directories.