bwebframework

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE = "FILE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BeanContext

type BeanContext struct {
	Writer  http.ResponseWriter
	Request *http.Request
}

type HandleFunc

type HandleFunc func(ctx *BeanContext) error

type Route

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

type Router

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

func NewRouter

func NewRouter() *Router

func (*Router) Delete

func (t *Router) Delete(pattern string, handleFunc HandleFunc)

func (*Router) File

func (t *Router) File(pattern string, handleFunc HandleFunc)

func (*Router) Get

func (t *Router) Get(pattern string, handleFunc HandleFunc)

func (*Router) Post

func (t *Router) Post(pattern string, handleFunc HandleFunc)

func (*Router) Put

func (t *Router) Put(pattern string, handleFunc HandleFunc)

func (*Router) ServeHTTP

func (t *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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