Documentation ¶
Index ¶
- func ExampleHTTPServerRun()
- func GetHostInfo(resp http.ResponseWriter, req *http.Request)
- func JSON(resp http.ResponseWriter, v any)
- func New(hm HandlerMap) *http.ServeMux
- func Pong(resp http.ResponseWriter, req *http.Request)
- func Status(resp http.ResponseWriter, code int)
- func String(resp http.ResponseWriter, v string)
- type HandlerMap
- type HandlerV
- func ANY(handlerFunc http.HandlerFunc) HandlerV
- func CONNECT(handlerFunc http.HandlerFunc) HandlerV
- func DELETE(handlerFunc http.HandlerFunc) HandlerV
- func GET(handlerFunc http.HandlerFunc) HandlerV
- func HEAD(handlerFunc http.HandlerFunc) HandlerV
- func Handle(handlerFunc http.HandlerFunc, httpMethod ...string) HandlerV
- func OPTIONS(handlerFunc http.HandlerFunc) HandlerV
- func PATCH(handlerFunc http.HandlerFunc) HandlerV
- func POST(handlerFunc http.HandlerFunc) HandlerV
- func PUT(handlerFunc http.HandlerFunc) HandlerV
- func TRACE(handlerFunc http.HandlerFunc) HandlerV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExampleHTTPServerRun ¶
func ExampleHTTPServerRun()
func GetHostInfo ¶
func GetHostInfo(resp http.ResponseWriter, req *http.Request)
func JSON ¶
func JSON(resp http.ResponseWriter, v any)
func New ¶
func New(hm HandlerMap) *http.ServeMux
func String ¶
func String(resp http.ResponseWriter, v string)
Types ¶
type HandlerMap ¶
type HandlerV ¶
type HandlerV struct {
// contains filtered or unexported fields
}
func ANY ¶
func ANY(handlerFunc http.HandlerFunc) HandlerV
func CONNECT ¶
func CONNECT(handlerFunc http.HandlerFunc) HandlerV
func DELETE ¶
func DELETE(handlerFunc http.HandlerFunc) HandlerV
func GET ¶
func GET(handlerFunc http.HandlerFunc) HandlerV
func HEAD ¶
func HEAD(handlerFunc http.HandlerFunc) HandlerV
func OPTIONS ¶
func OPTIONS(handlerFunc http.HandlerFunc) HandlerV
func PATCH ¶
func PATCH(handlerFunc http.HandlerFunc) HandlerV
func POST ¶
func POST(handlerFunc http.HandlerFunc) HandlerV
func PUT ¶
func PUT(handlerFunc http.HandlerFunc) HandlerV
func TRACE ¶
func TRACE(handlerFunc http.HandlerFunc) HandlerV
Click to show internal directories.
Click to hide internal directories.