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
I have checked existing issues and there are no existing ones with the same request.
Feature description
I have a route which sends a csv file with content-encoding gzip.
To be able to see the result in neovim, I have to set the --compressed arg on the curl command. I found no way to do so but changing the args in lua/rest-nvim/client/curl/cli.lua.
Maybe there is a way to allow args to be passed to curl in general? Or set --compressed, if Accept-Encoding header is set and contains gzip?
The text was updated successfully, but these errors were encountered:
I’m thinking of providing meta field for rest.Request type.
So users can make User RestRequestPre autocommand to update the request metadata before running a request
and clients like curl can use that metadata on request.
Introducing additional document comment (e.g. # @curl-args --compressed) might make things easier, but I’m bit skeptical to introduce too much new specs on top of other plugins from intellij/vscode)
Adding --compressed argument automatically based on header type sounds like a good idea.
Would this fit your needs?
Also please tell me if you are willing to make a PR. If not, I will do it but it might take some time due to personal schedules.
Issues
Feature description
I have a route which sends a csv file with content-encoding gzip.
To be able to see the result in neovim, I have to set the
--compressed
arg on the curl command. I found no way to do so but changing the args inlua/rest-nvim/client/curl/cli.lua
.Maybe there is a way to allow args to be passed to curl in general? Or set --compressed, if Accept-Encoding header is set and contains gzip?
The text was updated successfully, but these errors were encountered: