restclient.el
restclient.el copied to clipboard
Transform api call to function
I'd like to experiment in restclient and then map this to a function I can save and use
You can use restclient-copy-curl-command
as template to produce such transformer for your http of choice. I presume that you wouldn't want to rely on restclient.el's internals in generated code, and would use either raw url.el calls or request.el. I'd recommend the latter, it's much nicer in practice.
I don't like the idea of such functionality in restclient.el core though. It's better be a separate module that I'd be happy to advertise in README. I barely accepted curl version mainly due to curl's ubiquity, but this one is really niche thing.