http

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle[T, V protoreflect.ProtoMessage](
	x IServerDispatcher,
	entryPoint string,
	requestType,
	resultType uint64,
	input T,
	output V,
	onInputUnmarshalled func(T),
	onRequestProcessed func(V) (string, []byte),
	redirect bool,
) error

func NewDispatcher

func NewDispatcher(
	server IServer,
	response http.ResponseWriter,
	request *http.Request,
	query func(string) string,
	param func(string) string,
	ip string,
) IServerDispatcher

func NewHttpHandler

func NewHttpHandler(path, method string, handlerFunc HttpHandlerFunc) IHttpHandler

Types

This section is empty.

Jump to

Keyboard shortcuts

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