httpd

package
v0.0.0-...-7ab9190 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDenied

type AccessDenied struct{}

func (AccessDenied) ServeHTTP

func (_ AccessDenied) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ErrorResponder

type ErrorResponder struct {
	Status int
	Error  error
}

func (ErrorResponder) ServeHTTP

func (er ErrorResponder) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Httpd

type Httpd struct {
	net.Listener
	Ready TransCloser
}

func CheckStdioHttpd

func CheckStdioHttpd() Httpd

func (Httpd) CheckServe

func (s Httpd) CheckServe(ctx context.Context, h http.Handler)

type IPCAuth

type IPCAuth struct {
	Pass http.Handler
	Fail http.Handler
	Auth func(context.Context, uint32, uint32) bool
}

func (IPCAuth) ServeHTTP

func (h IPCAuth) ServeHTTP(w http.ResponseWriter, r *http.Request)

type JsonResponder

type JsonResponder struct {
	Status int
	Doc    interface{}
}

func (JsonResponder) ServeHTTP

func (jr JsonResponder) ServeHTTP(w http.ResponseWriter, r *http.Request)

type MethodMux

type MethodMux map[string]http.Handler

func (*MethodMux) Handle

func (mux *MethodMux) Handle(r *http.Request) http.Handler

func (*MethodMux) HandleFunc

func (mux *MethodMux) HandleFunc(method string, handler func(w http.ResponseWriter, r *http.Request))

func (*MethodMux) Handler

func (mux *MethodMux) Handler(method string, handler http.Handler)

func (MethodMux) ServeHTTP

func (mux MethodMux) ServeHTTP(w http.ResponseWriter, r *http.Request)

type NotFound

type NotFound struct{}

func (NotFound) ServeHTTP

func (_ NotFound) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Ready

type Ready struct {
	*os.File
	// contains filtered or unexported fields
}

func (Ready) Close

func (r Ready) Close() error

func (Ready) Commit

func (r Ready) Commit() (err error)

func (Ready) Rollback

func (r Ready) Rollback() (err error)

type RipStop

type RipStop struct{ http.Handler }

func (RipStop) ServeHTTP

func (h RipStop) ServeHTTP(w http.ResponseWriter, r *http.Request)

type StdHeaders

type StdHeaders struct{ http.Handler }

func (StdHeaders) ServeHTTP

func (h StdHeaders) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TransCloser

type TransCloser interface {
	io.WriteCloser
	Commit() error
	Rollback() error
}

Jump to

Keyboard shortcuts

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