comphttp

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MPL-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpApi

type HttpApi[REQ, RES any] interface {
	ParentUrl() string
	Url() string
	HttpMethod() []string
	Handle(r REQ) (ResponseHandler[RES], error)
}

type HttpApiSet

type HttpApiSet[REQ, RES any] interface {
	AddHttpApi(a HttpApi[REQ, RES]) error

	DefaultErrorHandler(error) ResponseHandler[RES]
}

type ResponseHandler

type ResponseHandler[T any] interface {
	Render(T) error
}

Jump to

Keyboard shortcuts

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