-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Any plan to support JetBrains HTTP file format? #122
Comments
It'd be possible to add this as an import target, similar to Insomnia. You would run a command once to generate a Slumber collection based on your HTTP file. It requires more work than Insomnia though because we would need a parser for this HTTP format. It looks like there's a library for it in Rust called http-rest-file but I'm not sure if it will actually work, it doesn't look very polished. |
@LucasPickering I'm working on this, here's my fork: https://github.com/benfaerber/slumber/tree/add-http-file-support I'm planning on using nom to parse the basic format and then httparse to parse the actual request portion. I think this is better because httparse is a very popular crate and the rest of the format is pretty simple to implement (just separators and variables) Let me know if I should know anything before going further. |
@benfaerber Thanks for taking this on! As far as guidance, the main thing is just copy the boilerplate from Insomnia. Aside from that:
|
This is closed now, will ship in 2.5.0. Thanks to @benfaerber! |
I found that Slumber and JetBrains HTTP file share most concepts, such as profile/environment, recipes/targets etc. Yes, slumber.yml is good to write http requests, but http file is better DSL in http. VS code has http file support too.
Could Slumber add support for JetBrains http file?
The text was updated successfully, but these errors were encountered: