goweb

package module
v0.0.0-...-b5bdda3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CutPrefix

func CutPrefix(origPath string, pfxCount int) (ctxPrefix, routePath string)

func Debug

func Debug(d bool)

func IsAJAX

func IsAJAX(req *http.Request) bool

func ReadBodyBytes

func ReadBodyBytes(w http.ResponseWriter, req *http.Request, maxSize int64) (result []byte)

func Redirect

func Redirect(w http.ResponseWriter, req *http.Request, location string)

Types

type ClientError

type ClientError struct {
	Msg string
}

func (ClientError) Error

func (v ClientError) Error() string

type Handler

type Handler interface {
	HandleRequest(w http.ResponseWriter, req *http.Request) htm.Result
}

type RootMux

type RootMux struct {
	Handler Handler
}

func (*RootMux) ServeHTTP

func (rm *RootMux) ServeHTTP(w http.ResponseWriter, req *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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