http

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 20 Imported by: 3 modules, 5 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

Index

Constants

View Source
const (
	MTLSRootCA     = "MTLSRootCA"
	MTLSClientCert = "MTLSClientCert"
	MTLSClientKey  = "MTLSClientKey"

	TraceparentHeaderKey = "traceparent"
	TracestateHeaderKey  = "tracestate"
	BaggageHeaderKey     = "baggage"
	TraceMetadataKey     = "traceHeaders"
)

Variables

This section is empty.

Functions

func NewHTTP

func NewHTTP(logger logger.Logger) bindings.OutputBinding

NewHTTP returns a new HTTPSource.

Types

type HTTPSource

type HTTPSource struct {
	// contains filtered or unexported fields
}

HTTPSource is a binding for an http url endpoint invocation

func (*HTTPSource) Close added in v1.15.0

func (h *HTTPSource) Close() error

func (*HTTPSource) GetComponentMetadata added in v1.11.0

func (h *HTTPSource) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

GetComponentMetadata returns the metadata of the component.

func (*HTTPSource) Init

func (h *HTTPSource) Init(_ context.Context, meta bindings.Metadata) error

Init performs metadata parsing.

func (*HTTPSource) Invoke

Invoke performs an HTTP request to the configured HTTP endpoint.

func (*HTTPSource) Operations

func (h *HTTPSource) Operations() []bindings.OperationKind

Operations returns the supported operations for this binding.

Jump to

Keyboard shortcuts

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