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

Support for custom socket? #436

Open
lattice0 opened this issue Aug 18, 2020 · 5 comments
Open

Support for custom socket? #436

lattice0 opened this issue Aug 18, 2020 · 5 comments

Comments

@lattice0
Copy link

I'm looking for an HTTP library that has support for custom sockets. That is, I implement my own socket open, connect, send functions. I know that libcurl has this option. Is it implemented in cpr? If not, is it easy to implement?

I'm reading through a bunch of HTTP libraries and therefore I don't have the time to read the sources of each one, so I'll be glad if someone could give me this information.

Thank you very much :)

@COM8
Copy link
Member

COM8 commented Aug 18, 2020

Hi @LucasZanella.
To make it short: No, CPR currently does not support custom sockets.
We also currently do not plan to add support for this.

I'm keeping this one open, in case somebody wants to create a PR for this.

For later reference: https://curl.haxx.se/libcurl/c/externalsocket.html

@simon-berger
Copy link
Contributor

I would like to work on the issue in the next few weeks and hopefully create a PR :)

@COM8
Copy link
Member

COM8 commented Jun 27, 2022

Sure, thanks @simon-berger !

@simon-berger simon-berger removed their assignment Jul 25, 2022
@simon-berger
Copy link
Contributor

Unfortunately, I won't have the time to work on the issue anymore. Therefore I unassigned myself and hope that someone else wants to take over this issue.

@Chrys4lisfag
Copy link

Bumping. This feature would be great

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

No branches or pull requests

4 participants