http

package
v0.0.0-...-bdbd220 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Headers

func Headers(l *lua.State, w http.ResponseWriter, r *http.Request)

Registers global Lua functions to manipulate set headers (for request and response)

func Parameters

func Parameters(l *lua.State, w http.ResponseWriter, r *http.Request)

Registers some global Lua variables (to e.g. handle routing) concerning the request

func Redirector

func Redirector(l *lua.State, w http.ResponseWriter, r *http.Request)

Registers a global redirect Lua function

func Responder

func Responder(l *lua.State, w http.ResponseWriter, r *http.Request)

Registers two global Lua functions to set the server response. +respond_with+ can be called multiple times (to e.g. iteratively write the response).

Types

This section is empty.

Jump to

Keyboard shortcuts

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