http

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 6 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.

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"
)

Variables

This section is empty.

Functions

func CreateLocalChannel

func CreateLocalChannel(port, maxConcurrency int) (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) 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