http

package
v0.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPVerb is an dapr http channel verb
	HTTPVerb = "http.verb"
	// HTTPStatusCode is an dapr http channel status code
	HTTPStatusCode = "http.status_code"
	// Get is an HTTP Get method
	Get = "GET"
	// Post is an Post Get method
	Post = "POST"
	// Delete is an HTTP Delete method
	Delete = "DELETE"
	// Put is an HTTP Put method
	Put = "PUT"
	// Options is an HTTP OPTIONS method
	Options = "OPTIONS"
	// QueryString is the query string passed by the request
	QueryString = "http.query_string"
	// ContentType is the header for Content-Type
	ContentType = "Content-Type"

	HeaderDelim  = "&__header_delim__&"
	HeaderEquals = "&__header_equals__&"
)

Variables

This section is empty.

Functions

func CreateLocalChannel

func CreateLocalChannel(port, maxConcurrency int, spec config.TracingSpec) (channel.AppChannel, error)

CreateLocalChannel creates an HTTP AppChannel nolint:gosec

Types

type Channel

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

Channel is an HTTP implementation of an AppChannel

func (*Channel) GetBaseAddress added in v0.6.0

func (h *Channel) GetBaseAddress() string

GetBaseAddress returns the application base address

func (*Channel) InvokeMethod

func (h *Channel) InvokeMethod(invokeRequest *channel.InvokeRequest) (*channel.InvokeResponse, error)

InvokeMethod invokes user code via HTTP

Jump to

Keyboard shortcuts

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