Along with #4271, I took the opportunity to clean up the surrounding code a small amount. This PR:
Renames 'handleSet' to 'handleHttpApi', clarifying what this function does;
Moves the check for leading 'win' to the one context where it matters (the web server), removing the need for all other callers to re-add this fixed string;
Moves the response generation out to the web server, eliminating an otherwise unnecessary parameter;
Removes the 'IN' tag, as that internal API was superseded by passing nullptr for the request. The conditional was broken anyhow, and HTTP requests are required to generate a response.
Along with #4271, I took the opportunity to clean up the surrounding code a small amount. This PR:
nullptr
for therequest
. The conditional was broken anyhow, and HTTP requests are required to generate a response.