myMPD
Internal API documentation
Loading...
Searching...
No Matches
interface_http.h File Reference

Lua interface for http. More...

#include <lauxlib.h>
#include <lua.h>
#include <lualib.h>
Include dependency graph for interface_http.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int lua_http_client (lua_State *lua_vm)
 
int lua_http_download (lua_State *lua_vm)
 
int lua_http_serve_file (lua_State *lua_vm)
 
int lua_http_serve_http_cache_file (lua_State *lua_vm)
 

Detailed Description

Lua interface for http.

Function Documentation

◆ lua_http_client()

int lua_http_client ( lua_State *  lua_vm)

Simple HTTP client for lua

Parameters
lua_vmlua instance
Returns
number of variables on the stack with the response

◆ lua_http_download()

int lua_http_download ( lua_State *  lua_vm)

Downloads a file via http

Parameters
lua_vmlua instance
Returns
number of variables on the stack with the response

◆ lua_http_serve_file()

int lua_http_serve_file ( lua_State *  lua_vm)

Function that creates a http reply to send a file

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_http_serve_http_cache_file()

int lua_http_serve_http_cache_file ( lua_State *  lua_vm)

Function that creates a http reply from the http client cache

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack