You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike http_get, the http function does not automatically convert JSONB payloads into query parameters for GET requests.
Would it be a good idea to add similar behaviour to http for consistency? Or maybe make http_get also accept http headers? Thats the main reason I am using http instead of http_get. Great project btw 👍
In http_get, JSONB data is automatically URL-encoded and appended to the URI
The thing is, the http() function is very much designed to just take a request. The structural difference between a GET and a POST also makes things a little hard to paper over, since in one case the data payload is going into the URL, and in another case it's going into the content. Maybe a parameter on the specialized http_get for headers is better... I was also thinking that a variadic function to create the headers array might also help in that case.
Unlike
http_get
, thehttp
function does not automatically convert JSONB payloads into query parameters for GET requests.Would it be a good idea to add similar behaviour to
http
for consistency? Or maybe makehttp_get
also accept http headers? Thats the main reason I am usinghttp
instead ofhttp_get
. Great project btw 👍In
http_get
, JSONB data is automatically URL-encoded and appended to the URIWith
http
, this has to be done manuallyBy reading
README.md
I was expecting this would workThe text was updated successfully, but these errors were encountered: