 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func NewHTTP(logger logger.Logger) bindings.OutputBinding
- type HTTPSource
- func (h *HTTPSource) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (h *HTTPSource) Init(_ context.Context, meta bindings.Metadata) error
- func (h *HTTPSource) Invoke(parentCtx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (h *HTTPSource) Operations() []bindings.OperationKind
 
Constants ¶
      View Source
      
  
const ( MTLSRootCA = "MTLSRootCA" MTLSClientCert = "MTLSClientCert" MTLSClientKey = "MTLSClientKey" TraceparentHeaderKey = "traceparent" TracestateHeaderKey = "tracestate" TraceMetadataKey = "traceHeaders" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPSource ¶
type HTTPSource struct {
	// contains filtered or unexported fields
}
    HTTPSource is a binding for an http url endpoint invocation
func (*HTTPSource) GetComponentMetadata ¶ added in v1.11.0
func (h *HTTPSource) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
GetComponentMetadata returns the metadata of the component.
func (*HTTPSource) Invoke ¶
func (h *HTTPSource) Invoke(parentCtx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
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.
 Click to show internal directories. 
   Click to hide internal directories.