-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: support POST #17
Conversation
@soedirgo the background worker crashes while running test suite |
Both POST and headers should be supported now. As for the remaining issues, they can be handled here or in a separate PR:
|
Functions with
Yeah, true. Ideally we'd integrate valgrind and also run it on CI. |
What kind of change does this PR introduce?
Feature
What is the new behavior?
Support POST requests via
net.http_post()
. Right now the function is mostly copypasting fromhttp_get()
, but I think in the future this should be refactored to use a (public?) generic functionnet.http()
.@olirice the order of arguments to
net.http_post()
is a bit out of place since required arguments have to be listed first - let me know if you want them changed. Also I see I'm failing the pytest stuff - anything I should look at? Do you want me to add a test as well? (haven't looked at how it's setup)@steve-chavez CMIIW, we currently ignore
params
andheaders
in the request right? Atmcontent_type
is handled separately, but I think we should handle it together withheaders
. In retrospect, I probably should've omittedcontent_type
in the SQL too... (was following pgsql-http) Also, let me know if I've freed the palloc'd stuff properly.Additional context
Closes #6.
TODOs
Content-Type
intoheaders
body
to byte array to align with Look into body response as bytea #5http_post
fails whenbody
is null