handler

package
v2.0.0-alpha.59 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(verb string) *Handler

func (Handler) Exec

func (h Handler) Exec(a *arg.Args, w http.ResponseWriter, r *http.Request)

func (Handler) HandlePanic

func (h Handler) HandlePanic(w http.ResponseWriter, err any)

func (Handler) Help

func (h Handler) Help() []string

func (Handler) Hidden

func (h Handler) Hidden() bool

func (*Handler) IsHidden

func (h *Handler) IsHidden() *Handler

func (Handler) IsRaw

func (h Handler) IsRaw() bool

func (Handler) Method

func (h Handler) Method() string

func (Handler) ParamSpec

func (h Handler) ParamSpec() []hap.ParamSpec

func (Handler) ReplySpec

func (h Handler) ReplySpec() []hap.ReplySpec

func (Handler) Tags

func (h Handler) Tags() url.Values

func (Handler) ValidateArgs

func (h Handler) ValidateArgs(raw url.Values, arg *arg.Args) (string, []any)

func (*Handler) WithActions

func (h *Handler) WithActions(acts ...hap.Action) *Handler

func (*Handler) WithHelp

func (h *Handler) WithHelp(text string) *Handler

func (*Handler) WithParams

func (h *Handler) WithParams(ps ...param.Param) *Handler

func (*Handler) WithReplySpec

func (h *Handler) WithReplySpec(rs ...hap.ReplySpec) *Handler

func (*Handler) WithTags

func (h *Handler) WithTags(tags ...tag.Tag) *Handler

Jump to

Keyboard shortcuts

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