httprequest

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 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.

README

HTTP Request node

Type: httpRequest
Category: Actions

Makes an HTTP request to a specified URL.

Behavior

This node is registered as httpRequest and runs as part of a workflow. Its exact runtime behavior is implemented in node.go; this document summarizes the editor-facing purpose and configuration contract.

Configuration

Field Type Default Description
body ``
errorCatch boolean false Error Catch Port — Adds a dedicated "error" output port; a node failure emits msg.error={text,node,full} on it when wired, else the catch/problem-queue ladder applies
headers object Headers
method string GET HTTP Method
password string Password — Optional basic-auth password (credential: masked, never exported)
url ``
username string Username — Optional basic-auth username (credential: masked, never exported)

Implementation

  • node.go contains the executor, validation, schema, and registration.
  • editor.html contains the editor integration.
  • node_test.go, when present, contains behavioral tests.

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