http

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package http provides bindings for Go's net/http package.

Package http provides HTTP server bindings for TypeGo.

Index

Constants

This section is empty.

Variables

View Source
var HttpTypes []byte

Functions

func Register

func Register(vm *sobek.Runtime, el *eventloop.EventLoop)

Types

type Module

type Module struct{}

func (*Module) Get

func (h *Module) Get(vm *sobek.Runtime) func(sobek.FunctionCall) sobek.Value

type Server

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

func NewServer

func NewServer(vm *sobek.Runtime, el *eventloop.EventLoop) *Server

func (*Server) Close

func (s *Server) Close(timeout time.Duration) error

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string, handler sobek.Callable) error

Jump to

Keyboard shortcuts

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