Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using header in request for authentification #75

Open
AlexisBalzano opened this issue Mar 24, 2024 · 1 comment
Open

Using header in request for authentification #75

AlexisBalzano opened this issue Mar 24, 2024 · 1 comment

Comments

@AlexisBalzano
Copy link

AlexisBalzano commented Mar 24, 2024

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 ?
Capture d'écran 2024-03-24 191713

@richguernsey
Copy link

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" } });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants