http

package
v1.17.9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 19 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,
	requestType,
	resultType uint64,
	input T,
	output V,
	onInputUnmarshalled func(T),
	onRequestProcessed func(V) (string, []byte),
	redirect bool,
) error

func NewDispatcher

func NewDispatcher(
	server IServer,
	writer IWriter,
	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