zbhttp

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWriterHadEnded = errors.New("http: not settable http.ResponseWriter")

ErrWriterHadEnded http: not settable http.ResponseWriter

View Source
var ErrWriterNotAsyn = errors.New("http: not in asynchronous")

ErrWriterNotAsyn http: not in asynchronous

View Source
var ErrWriterNotSettable = errors.New("http: not settable http.ResponseWriter")

ErrWriterNotSettable http: not settable http.ResponseWriter.

Functions

func EndHTTPAsyn

func EndHTTPAsyn(w http.ResponseWriter) int

func EndHTTPAsyn2

func EndHTTPAsyn2(w http.ResponseWriter) error

EndHTTPAsyn2 结束异步http

func Handle

func Handle(pattern string, handler http.Handler)

func HandleFunc

func HandleFunc(pattern string, fun func(http.ResponseWriter, *http.Request))

func ListenAndServe

func ListenAndServe(addr string, handler http.Handler, run zbrun.Runner) error

func ListenAndServe2

func ListenAndServe2(svr *http.Server, run zbrun.Runner) error

func SetHTTPAsyn

func SetHTTPAsyn(w http.ResponseWriter) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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