Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.
Based slightly off c-brenn's work, but with a more concise function for reading clarity
Noteretained_plugs_count was inefficient as it's usage was only to check for the presence of retained_plugs, rather than its actual count, it's quicker to just scan through the items and exit on the first entry.
Based slightly off c-brenn's work, but with a more concise function for reading clarity
Note
retained_plugs_count
was inefficient as it's usage was only to check for the presence of retained_plugs, rather than its actual count, it's quicker to just scan through the items and exit on the first entry.