Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Plugin = taskplugin.New("http", "0.6", 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 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"`
HTTPBasicAuth BasicAuth `json:"basic_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.