http_server

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HFunc

type HFunc func(http.ResponseWriter, *http.Request)

type HttpServer

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

func NewHttpServer

func NewHttpServer(port uint) *HttpServer

func (*HttpServer) RegisterHandler

func (p *HttpServer) RegisterHandler(path string, method string, callback HFunc)

register http handler, path not need add '/'

func (*HttpServer) Run

func (p *HttpServer) Run()

Jump to

Keyboard shortcuts

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