Skip to content
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

Feature request: parse .http files/directories #109

Open
franksl opened this issue Aug 27, 2024 · 5 comments
Open

Feature request: parse .http files/directories #109

franksl opened this issue Aug 27, 2024 · 5 comments

Comments

@franksl
Copy link

franksl commented Aug 27, 2024

Hi,
To avoid the use of non standard collection files I started using .http files that become very useful in neovim with the rest.nvim or kulala packages. I think it would be very useful to be able to launch ATAC by passing the path to a directory containing .http files and showing them as a collection.
Thanks,
Frank

@Julien-cpsn
Copy link
Owner

Hello,

For now, such a thing is not planned. Although, I am not closed to this idea. Can you please show me what your http file looks like?

Have a great day

Julien

@franksl
Copy link
Author

franksl commented Aug 27, 2024

Hi,
You can find some specifications here: https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-8.0#http-file-syntax.
It is basically a plain text file where you put the kind of request, headers and payload in a way similar to how they are sent through the http protocol.
Frank

@ccoVeille
Copy link
Contributor

tree-sitter-http is also a good source of thruth

@Julien-cpsn
Copy link
Owner

Julien-cpsn commented Aug 27, 2024

The import of those files is planned. Exporting toward this file format is also planned (and almost finished). So maybe you can use it this way:

  • you import your .http files
  • you use the collections as usual
  • once finished, you export them to .http file format
  • repeat

Is that ok for you?

(As said, the import/export of .http is not fully ready yet)

@franksl
Copy link
Author

franksl commented Aug 27, 2024

I think that would be good in order to keep my http files, thanks!

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

No branches or pull requests

3 participants