Help us shape the future of Go! Take the 2026 Go Developer Survey

http

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(req *http.Request, hook ResultsFn) error

func EventToRequest

func EventToRequest(url string, in event.Event) (*http.Request, error)

func RequestToEvent

func RequestToEvent(req *http.Request) (*event.Event, error)

Types

type Raw added in v0.2.0

type Raw struct {
	Out  io.Writer
	Port int `envconfig:"PORT" default:"8080"`
}

func (*Raw) Do added in v0.2.0

func (raw *Raw) Do() error

func (*Raw) ServeHTTP added in v0.2.0

func (raw *Raw) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ResultsFn

type ResultsFn func(*http.Request, *http.Response, error)

Jump to

Keyboard shortcuts

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