generic

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpClient

func HttpClient(l *lua.State)

Registers a global http_request Lua function, it requires a table in structure as follows ```lua

{
	method=*HTTP_METHOD*,
	url=*TARGET_URL*,
	body=*POST_BODY*,
	headers={
		[*HEADER_NAME*]=*HEADER_VALUE*
		...
	}
}

``` Lua function returns response_body, response_code

func JSON

func JSON(l *lua.State)

Registers two symetric global Lua functions to encode/decode JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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