ProxyServer

Class ProxyServer
Methods Summary
public
# __construct( )
Constructor, loads up the Settings for the proxy

access


public
# checkRequest( )
Checks whether the request is valid or not

access


public
# serve( )
Serves the request

access


protected
# getCachedPath( string $request )
Returns the request's hashed filepath

access


protected
# isCached( string $request )
Check whether the image exists in local cache or not

access


protected
# cacheImage( string $request )
Attempts to cache the image while validating it

access


public static
# redirectexit( \type $request )
Static helper function to redirect a request

access


public
# housekeeping( )
Delete all old entries

access


Properties Summary
protected bool $enabled
# NULL
protected int $maxSize
# NULL
protected string $secret
# NULL
protected string $cache
# NULL
protected int $maxDays
# NULL