http

package
v0.0.0-...-d09eed2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemeHTTP       = "http"
	SchemeHTTPS      = "https"
	PropertiesPrefix = "camel.component."

	AttributeStatusMessage = "camel.apache.org/http.status.message"
	AttributeStatusCode    = "camel.apache.org/http.status.code"
	AttributeProto         = "camel.apache.org/http.proto"
	AttributeContentLength = "camel.apache.org/http.content-length"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	components.DefaultComponent
}

func (*Component) Endpoint

func (c *Component) Endpoint(config api.Parameters) (api.Endpoint, error)

type Config

type Config struct {
	URI       string `mapstructure:"uri"`
	Remaining string `mapstructure:"remaining"`
	Method    string `mapstructure:"method"`
}

type Endpoint

type Endpoint struct {
	components.DefaultEndpoint
	// contains filtered or unexported fields
}

func (*Endpoint) Consumer

func (e *Endpoint) Consumer(_ *actor.PID) (api.Consumer, error)

func (*Endpoint) Producer

func (e *Endpoint) Producer() (api.Producer, error)

func (*Endpoint) Start

func (e *Endpoint) Start(context.Context) error

func (*Endpoint) Stop

func (e *Endpoint) Stop(context.Context) error

type Producer

type Producer struct {
	components.DefaultProducer
	// contains filtered or unexported fields
}

func (*Producer) Endpoint

func (p *Producer) Endpoint() api.Endpoint

func (*Producer) Receive

func (p *Producer) Receive(ac actor.Context)

func (*Producer) Start

func (p *Producer) Start(context.Context) error

func (*Producer) Stop

func (p *Producer) Stop(context.Context) error

Jump to

Keyboard shortcuts

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