Hacker News new | ask | show | jobs
by miccah 1988 days ago
This looks really great. I like that everything is defined in plaintext, but is there a way to link in other files? It might help clear up some clutter for large payloads. Environment variables might be good for using secrets more securely as well.

I'm actually working on a similar project (also in Rust) but targeting interactive use and differing environments. It's a tool I created for myself because I was tired of hand crafting curl commands and forgetting which env variables are set to what.

It is still very young but I'll link it anyway: https://github.com/mcastorina/repost

1 comments

Thanks for the feedbacks!

Looking at repost, I can see that there is definitely a place for an HTTP runner/tools that can do asserts on response.

For your suggestions, environnement variable support is certainly a good feature (actually, we can inject variable in the command line ex: hurl --variable user=dude file.hurl). Including another file is also a good suggestion. Currently we write tests by hand or sometimes generate the Hurl text file when we want to reuse steps, but a build-in support is a good idea.

We have the option to include a body from an external file, this is especially useful for large or binary payload.

  POST https://example.net
  file,data.bin;