HTTPRequest
HTTPRequest copied to clipboard
Using header in request for authentification
Hey, how do you send a header with the authorisation token inside a request ?
i tried like this but I get a bunch of errors... How should I do it ?
Since the headers list is a map of string,string you just need to wrap each pair in the parent set of braces.
const auto response = request.send("GET", body, { { "Authorization", "value" } });