httpserver

package
v0.0.0-...-6113c70 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Request  *http.Request
	Response http.ResponseWriter
}

type HttpServer

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

func New

func New() *HttpServer

func (*HttpServer) HandleFunc

func (h *HttpServer) HandleFunc(pattern string, handler func(ctx *Context))

func (*HttpServer) ListenAndServe

func (h *HttpServer) ListenAndServe(addr string) error

Jump to

Keyboard shortcuts

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