http

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPModule

type HTTPModule struct{}

HTTPModule provides HTTP server functionality

func NewHTTPModule

func NewHTTPModule() *HTTPModule

NewHTTPModule creates a new HTTP module

func (*HTTPModule) Cleanup

func (h *HTTPModule) Cleanup() error

Cleanup performs any necessary cleanup

func (*HTTPModule) CreateModuleObject

func (h *HTTPModule) CreateModuleObject(runtime *sobek.Runtime) sobek.Value

CreateModuleObject creates the HTTP server module when required

func (*HTTPModule) IsEnabled

func (h *HTTPModule) IsEnabled(enabledModules map[string]bool) bool

IsEnabled checks if the module should be enabled based on configuration

func (*HTTPModule) Name

func (h *HTTPModule) Name() string

Name returns the module name

func (*HTTPModule) Setup

func (h *HTTPModule) Setup(runtime *sobek.Runtime, manager *vm.VMManager) error

Setup initializes the HTTP module in the VM

Jump to

Keyboard shortcuts

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