Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCORS ¶
func HandleCORS(h fasthttp.RequestHandler) fasthttp.RequestHandler
HandleCORS returns headers if the request is an OPTIONS request.
func HandleHTTPRequest ¶
func HandleHTTPRequest(ctx *fasthttp.RequestCtx)
HandleHTTPRequest routes HTTP requests to their respective handlers based on the path.
func LimitPath ¶
func LimitPath(h fasthttp.RequestHandler) fasthttp.RequestHandler
LimitPath generally handles all paths. IPs will be stored like 0_192.168.1.1 for path 0, 1_192.168.1.1 for path 1, and so on. Bandwidth checking for uploading is set as BW_UP_192.168.1.1, for another example.
Types ¶
Click to show internal directories.
Click to hide internal directories.