-
Notifications
You must be signed in to change notification settings - Fork 229
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
Http support #280
Comments
There was someone planning to work on passing features from a single-header socket library to Gravity. Fortunately, making a wrapper for a library towards Gravity is not that difficult - but it does involve reading through the various headers, since not all functions are labeled very well (take the But for that, you do get a very low-level access to Gravity and values, reducing the layers of abstractions quite some and making access to the wrapper itself quite fast. I was looking into Swig, but trying to write a wrapper generator using Swig is all but easy unfortunately... |
@IngwiePhoenix is there a wrapper on github I can use for reference? I tried looking, but gravitational spams the search + it seems there are still open issues for module support |
https://github.com/marcobambini/gravity/blob/master/src/optionals/gravity_env.c This is one that I contributed. In general, you can find some good examples within the |
Oh, I saw those. That's what I modeled my changes off of |
And yes - module support is in fact still missing. But with module support, people mean something like this:
But you can still add functions to Gravity just fine. |
think my link was poorly placed, fixed it |
I'm not sure if http support is better implemented built-in or through a library, but it's a generally useful feature.
I took a stab at handling get requests (super ugly, just got an mvp going)
jamesalbert@2695e5b
Are there already plans to implement something like this? If not, with some feedback, is this something that can be added to the project?
The text was updated successfully, but these errors were encountered: