Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TimeoutDefault represents the default value that will be used for HTTP call, if not defined in configuration
TimeoutDefault = "30s"
)
Variables ¶
View Source
var ( Plugin = taskplugin.New("http", "1.0", exec, taskplugin.WithConfig(validConfig, HTTPConfig{}), taskplugin.WithResources(resourceshttp), ) )
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"` Host string `json:"host"` Path string `json:"path"` Method string `json:"method"` Body string `json:"body,omitempty"` Headers []parameter `json:"headers,omitempty"` Timeout string `json:"timeout,omitempty"` Auth auth `json:"auth,omitempty"` FollowRedirect string `json:"follow_redirect,omitempty"` QueryParameters []parameter `json:"query_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.