Documentation
¶
Overview ¶
Package httpcall is the task type "http" for HTTP calls users define (BPMN-10): method, URL, headers and body as inputs, statusCode and response as outputs. Which targets are allowed is configured per namespace, separately for cloud and gateway (NS-04).
Index ¶
Constants ¶
const ( Cloud = "cloud" Fog = "fog" )
const TaskType = "http"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func New ¶
func New(namespaces Namespaces, mode string) *Type
func (*Type) Do ¶
Do sends a request under the HTTP policy of a namespace (NS-04), e.g. a generic watch request of the watcher (TASK-27). The caller closes the body of the response.
func (*Type) Execute ¶
Execute calls the URL; any answer completes the task with statusCode and response, the process decides what a status means. A denied target fails without retry.
func (*Type) SetLocalPolicy ¶ added in v0.5.0
func (this *Type) SetLocalPolicy(policy model.HttpPolicy)
SetLocalPolicy makes policy the one of every namespace, as a gateway configures it (NS-04).