http

package
v0.0.0-...-bb20dc4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomHeadersHandler

func CustomHeadersHandler(h http.Handler, header http.Header) http.Handler

Types

type HttpListenInput

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

func (*HttpListenInput) Init

func (hli *HttpListenInput) Init(pcf *plugins.PluginCommonConfig, conf toml.Primitive) (err error)

func (*HttpListenInput) RequestHandler

func (hli *HttpListenInput) RequestHandler(w http.ResponseWriter, req *http.Request)

func (*HttpListenInput) Run

func (hli *HttpListenInput) Run(runner plugins.InputRunner) (err error)

func (*HttpListenInput) Stop

func (hli *HttpListenInput) Stop()

type HttpListenInputConfig

type HttpListenInputConfig struct {
	// TCP Address to listen to for incoming requests.
	// Defaults to "127.0.0.1:8325".
	Address        string
	Headers        http.Header
	RequestHeaders []string `toml:"request_headers"`
}

HTTP Listen Input config struct

Jump to

Keyboard shortcuts

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