servermodule

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Header

func (*Header) AssignVariable

func (h *Header) AssignVariable(variable string, value lang.Object) error

func (*Header) Execute

func (h *Header) Execute(_ []*models.Node) (lang.Object, error)

func (*Header) Get

func (h *Header) Get(_ []*models.Node) (lang.Object, error)

func (*Header) GetMethod

func (h *Header) GetMethod(name string) (lang.Method, error)

func (*Header) GetNew

func (h *Header) GetNew() lang.Executer

func (*Header) GetVariable

func (h *Header) GetVariable(variable string) (lang.Object, error)

func (*Header) Variables

func (h *Header) Variables() []string

type HttpServer

type HttpServer struct {
	Body    bytes.Buffer
	Code    int
	Written bool
	// contains filtered or unexported fields
}

func New

func (*HttpServer) Methods

func (h *HttpServer) Methods() map[string]lang.Method

func (*HttpServer) Namespace

func (*HttpServer) Namespace() string

func (*HttpServer) Objects

func (h *HttpServer) Objects() map[string]lang.Object

type Request

type Request struct {
	lang.Base
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(r *http.Request) *Request

func (*Request) Copy

func (r *Request) Copy() lang.Object

func (*Request) Method

func (r *Request) Method(name string) lang.Method

func (*Request) Methods

func (r *Request) Methods() []string

func (*Request) SetVariable

func (r *Request) SetVariable(_ string, _ lang.Object) error

func (*Request) String

func (r *Request) String() string

func (*Request) Type

func (r *Request) Type() lang.ObjType

func (*Request) TypeString

func (*Request) TypeString() string

func (*Request) Value

func (r *Request) Value() any

func (*Request) Variable

func (r *Request) Variable(variable string) lang.Object

func (*Request) Variables

func (r *Request) Variables() []string

Jump to

Keyboard shortcuts

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