HolyLib Wiki

HttpServer:Patch

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

Description

Adds the given Patch path to the HttpServer.

Recently Changed

This was recently changed in version (0.8 - DEV).

The response argument inside the callback was removed as all HttpResponse functions were merged into the HttpRequest

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

Function return argument(s):

3boolean ipWhitelist = false

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