web_pkg_http

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server serves web packages by performing LookupWebPkg directives.

func NewServer

func NewServer(le *logrus.Entry, b bus.Bus, returnIfIdle bool) *Server

NewServer constructs a new server.

func (*Server) ServeWebModuleHTTP

func (s *Server) ServeWebModuleHTTP(pkgPath string, rw http.ResponseWriter, req *http.Request)

ServeWebModuleHTTP serves an http request with the package path (e.x. react/index.js).

Jump to

Keyboard shortcuts

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