Skip to content

Head Request Function #20

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

Open
thomascjohnson opened this issue May 20, 2025 · 3 comments
Open

Head Request Function #20

thomascjohnson opened this issue May 20, 2025 · 3 comments

Comments

@thomascjohnson
Copy link

Hey folks, thank you for making this extension. Usually I'd just make a PR on my own but I'm many years removed from writing C++. It would be super helpful to have a http_head function for getting headers without having to do an entire download.

@lmangani
Copy link
Collaborator

Hey @thomascjohnson sounds possible - could you expand on the request and proposal with an example?

@thomascjohnson
Copy link
Author

Ok, I ended up biting the bullet and putting this quick and dirty implementation together (with a test for http_head -- all tests pass): https://github.com/thomascjohnson/duckdb-extension-httpclient/tree/http_head

Let me know what you think. Something needs to be done about generating the response string, as I didn't want to reuse GetJsonResponse with the body key.

@lmangani
Copy link
Collaborator

Thanks for taking the time to contribute this @thomascjohnson! we'll review changes in the PR and go from there!

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