QueryResponse

Embodies a response from a query to the Twitch servers. A string paired with a millisecond count of how long the query took, and some metadata about the request.

This is used instead of a std.typecons.Tuple because it doesn't apparently work with shared.

version(TwitchSupport && WithTwitchPlugin)
package
struct QueryResponse {}

Members

Variables

code
uint code;

The HTTP response code received.

error
string error;

The message of any exception thrown while querying.

msecs
long msecs;

How long the query took, from issue to response.

str
string str;

Response body, may be several lines.

Meta