http

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct{}

func (*HTTP) Actions

func (e *HTTP) Actions() []core.Action

func (*HTTP) Cancel

func (e *HTTP) Cancel(ctx core.ExecutionContext) error

func (*HTTP) Color

func (e *HTTP) Color() string

func (*HTTP) Configuration

func (e *HTTP) Configuration() []configuration.Field

func (*HTTP) Description

func (e *HTTP) Description() string

func (*HTTP) Execute

func (e *HTTP) Execute(ctx core.ExecutionContext) error

func (*HTTP) HandleAction

func (e *HTTP) HandleAction(ctx core.ActionContext) error

func (*HTTP) HandleWebhook

func (e *HTTP) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*HTTP) Icon

func (e *HTTP) Icon() string

func (*HTTP) Label

func (e *HTTP) Label() string

func (*HTTP) Name

func (e *HTTP) Name() string

func (*HTTP) OutputChannels

func (e *HTTP) OutputChannels(configuration any) []core.OutputChannel

func (*HTTP) ProcessQueueItem

func (e *HTTP) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*HTTP) Setup

func (e *HTTP) Setup(ctx core.SetupContext) error
type Header struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Spec

type Spec struct {
	Method             string      `json:"method"`
	URL                string      `json:"url"`
	SendHeaders        bool        `json:"sendHeaders"`
	Headers            []Header    `json:"headers"`
	SendBody           bool        `json:"sendBody"`
	ContentType        string      `json:"contentType"`
	JSON               *any        `json:"json,omitempty"`
	XML                *string     `json:"xml,omitempty"`
	Text               *string     `json:"text,omitempty"`
	FormData           *[]KeyValue `json:"formData,omitempty"`
	CustomSuccessCodes bool        `json:"customSuccessCodes"`
	SuccessCodes       string      `json:"successCodes"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL