Commits

luastoned committed f240b77

Added placeholder connector helpers

  • Participants
  • Parent commits de87fe2

Comments (0)

Files changed (3)

File connectors/luacurl.lua

+-------------------------------------------------------------------------------
+-- LuaCURL connector
+-- Facepunch Lua API
+-- Authors: Andrew McWatters
+--			Gran PC
+--			Gregor Steiner
+-------------------------------------------------------------------------------
+
+function facepunch.http.get( URL )
+end
+
+function facepunch.http.post( URL, postData )
+end

File connectors/luasocket.lua

+-------------------------------------------------------------------------------
+-- LuaSocket connector
+-- Facepunch Lua API
+-- Authors: Andrew McWatters
+--			Gran PC
+--			Gregor Steiner
+-------------------------------------------------------------------------------
+
+function facepunch.http.get( URL )
+end
+
+function facepunch.http.post( URL, postData )
+end

File facepunch/http.lua

 module( "facepunch.http" )
 
 -------------------------------------------------------------------------------
--- facepunch.get()
+-- http.get()
 -- Purpose: The get wrapper function for the facepunch module. All retrieval
 --			functions rely on this wrapper for parsing. It must return the full
 --			page if possible and a status code (200 OK).
 end
 
 -------------------------------------------------------------------------------
--- facepunch.post()
+-- http.post()
 -- Purpose: The post wrapper function for the facepunch module. All submission
 --			functions rely on this wrapper for interaction. It must return the
 --			full page if possible and a status code (200 OK).