HolyLib Wiki

Post

  HttpServer:Post( string path, function callback, boolean ipWhitelist = false )

Description

Adds the given Post path to the HttpServer.

Arguments

1string path
the path to add
2function callback

the callback is called when a new request is received.

Function argument(s):
1HttpRequest request - The incoming request
2HttpResponse response - The respone to use

3boolean ipWhitelist = false

true to enable the IP whitelist
only requests sent by connected players are processed.