Creates a Router that has the HUMAN enforcer integrated into it already.
ConfigurationParamsstringCreates a new instance of the HumanSecurity class from a ConfigurationParams object (see the configuration section for more information).
ConfigurationParamsHumanSecurity classProvides the required first party path and handler parameters for the Router.match() function.
'/<FIRST_PARTY_PREFIXES>/:path*')Caching settings are controlled by the Cache-Control response header.
Provides the filtered extension path and handler parameters for the Router.match() function.
The path match will be a string like '/:path*/:file.:ext(jpg|css|png|...)*' where the extensions are based px_filter_by_extension configuration value. This function requires the originName so that requests can be proxied to the origin if they are not found in the cache.
Caching settings are controlled by the Cache-Control response header.
Creates a new Enforcer instance. For use inside the compute function.
The entity responsible for performing HUMAN enforcement. A new Enforcer should be created using createEnforcer() inside the function passed to the compute() function.
Executes the enforcement functionality, returning either a response or null depending on which action should be taken.
Performs any post-enforcement processing actions and final modifications to (i.e., setting cookies or headers on) the response if needed.
The postEnforce function adds a Set-Cookie header to the response, so these responses will not be cached.