HolyLib Wiki

Delete

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

Description

Adds the given Delete 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.