httprequest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package httprequest contains the httpRequest node implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequest

type HTTPRequest struct {
	*nodebase.BaseNode
	// contains filtered or unexported fields
}

HTTPRequest is a node that makes HTTP requests It implements the NodeExecutor interface

func NewHTTPRequest

func NewHTTPRequest(node nodestore.NodeInterface, config *HTTPRequestConfig, hosts ...nodebase.NodeHost) *HTTPRequest

NewHTTPRequest creates a new HTTP request node. host is variadic for backward compatibility (older callers passed none); supply the NodeHost so the optional OutboundURLAllowed policy is honoured.

func (*HTTPRequest) Execute

Execute makes the HTTP request and returns the response

func (*HTTPRequest) Validate

func (n *HTTPRequest) Validate() error

Validate checks if the node is properly configured

type HTTPRequestConfig

type HTTPRequestConfig struct {
	URL     string            `json:"url"`
	Method  string            `json:"method"`
	Headers map[string]string `json:"headers,omitempty"`
	Body    interface{}       `json:"body,omitempty"`
	// Username/Password set an HTTP Basic auth credential on the
	// request. They are credential-typed fields: stored outside the
	// exported flow document and merged back in at deploy time.
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

HTTPRequestConfig holds configuration for the HTTP request node

Jump to

Keyboard shortcuts

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