Skip to content

dont display binary outputs in answer#200

Merged
teto merged 2 commits intorest-nvim:mainfrom
teto:dontdisplay_binary_output
Jun 6, 2023
Merged

dont display binary outputs in answer#200
teto merged 2 commits intorest-nvim:mainfrom
teto:dontdisplay_binary_output

Conversation

@teto
Copy link
Copy Markdown
Collaborator

@teto teto commented Jun 6, 2023

I was testing an API that returned a zip file and it was getting out of
hand so I added an is_binary_content_type to control whether to display
the content type.
Ideally I would have liked the display to be a default postprocess step so
that it gets more generic and let the user more control but this needs
deeper refactoring.

Matthieu Coudron added 2 commits June 6, 2023 15:34
I removed some dead code and also the providing of neovim since it
interfered with plugins (nixpkgs telescope required a neovim version >=
0.9).
I was testing an API that returned a zip file and it was getting out of
hand so I added an is_binary_content_type to control whether to display
the content type.
Ideally I would have liked the display to be a default postprocess step so
that it gets more generic and let the user more control but this needs
deeper refactoring.
@teto teto force-pushed the dontdisplay_binary_output branch from 800e88e to 5ebe35f Compare June 6, 2023 13:34
@teto teto marked this pull request as ready for review June 6, 2023 13:51
@teto teto merged commit 5714b71 into rest-nvim:main Jun 6, 2023
@teto teto deleted the dontdisplay_binary_output branch June 6, 2023 14:51
@teto
Copy link
Copy Markdown
Collaborator Author

teto commented Jun 7, 2023

I guess we should sitll display it in case of error, aka still inline error if status is not ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant