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

url is passed as an std::string_view #1

Open
Tachi107 opened this issue Aug 3, 2022 · 0 comments
Open

url is passed as an std::string_view #1

Tachi107 opened this issue Aug 3, 2022 · 0 comments

Comments

@Tachi107
Copy link
Owner

Tachi107 commented Aug 3, 2022

I should probably use the Text concept to make sure it is NULL-terminated.

void get(const std::string_view url, const Text auto... headers) noexcept {
_response_body.clear();
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
curl_easy_setopt(curl, CURLOPT_URL, url.data());

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

1 participant