weblib

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InArray

func InArray(O *[]string, S string) bool

func Md5

func Md5(s1 string, s2 string) [16]byte

func Pathinfo

func Pathinfo(r *http.Request, p1 string, p2 string) (string, string)

func SetProxy

func SetProxy(proxy string)

Types

type WebBase

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

func NewWebBase

func NewWebBase(w http.ResponseWriter, r *http.Request) *WebBase

func (*WebBase) Get

func (B *WebBase) Get(name string) string

func (*WebBase) IsErr

func (B *WebBase) IsErr() *WebBase

func (*WebBase) IsJson

func (B *WebBase) IsJson(b bool) *WebBase

func (*WebBase) Post

func (B *WebBase) Post(name string) string

func (*WebBase) Send

func (B *WebBase) Send()

func (*WebBase) SetBody

func (B *WebBase) SetBody(b string) *WebBase

func (*WebBase) SetCode

func (B *WebBase) SetCode(c int) *WebBase

func (*WebBase) SetHead

func (B *WebBase) SetHead(k string, v string) *WebBase

func (*WebBase) Web403

func (B *WebBase) Web403()

func (*WebBase) Web404

func (B *WebBase) Web404()

func (*WebBase) Web500

func (B *WebBase) Web500()

func (*WebBase) WebErr

func (B *WebBase) WebErr(msg string)

func (*WebBase) WebJson

func (B *WebBase) WebJson(data string)

func (*WebBase) WebLocation

func (B *WebBase) WebLocation(url string)

func (B *WebBase) WebCtype() {}

func (*WebBase) WebPage

func (B *WebBase) WebPage(page string)

func (*WebBase) WebSucess

func (B *WebBase) WebSucess(msg string)

Jump to

Keyboard shortcuts

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