The current TwitchPlugin.
The URL to query.
Name of the calling function.
Authorisation HTTP header to pass.
What HTTPVerb to use in the request.
Request body to send in case of verbs like POST and PATCH.
"Content-Type" HTTP header to pass.
Numerical ID to use instead of generating a new one.
Whether or not this is a recursive call and another one should not be attempted.
The QueryResponse that was discovered while monitoring the TwitchPlugin.responseBucket
as having been received from the server.
EmptyResponseException if the response body was empty. ErrorJSONException if the response body was JSON but contained an "error" key. TwitchQueryException if there were other unrecoverable errors.
immutable response = sendHTTPRequest( plugin, "https://id.twitch.tv/oauth2/validate", __FUNCTION__, "OAuth 30letteroauthstring");
Wraps sendHTTPRequestImpl by proxying calls to it via the persistentQuerier subthread.
Once the query returns, the response body is checked to see whether or not an error occurred. If so, it throws an exception with a descriptive message.
Note: Must be called from inside a Fiber.