sendHTTPRequestImpl

Sends a HTTP request of the passed verb to the passed URL, and returns the response.

version(TwitchSupport && WithTwitchPlugin)
package
sendHTTPRequestImpl
(
const string url
,
const string authHeader
,
const string caBundleFile
,,
ubyte[] body_ = null
,
string contentType = string.init
)

Parameters

url string

URL address to look up.

authHeader string

Authorisation token HTTP header to pass.

caBundleFile string

Path to a cacert.pem SSL certificate bundle.

verb HTTPVerb

What HTTPVerb to use in the request.

body_ ubyte[]

Request body to send in case of verbs like POST and PATCH.

contentType string

"Content-Type" HTTP header to use.

Return Value

Type: auto

A QueryResponse of the response from the server.