←back to thread

460 points flykespice | 1 comments | | HN request time: 0.203s | source
Show context
kalli ◴[] No.44325972[source]
This looks interesting. Longtime user of the Vscode-restclient, but have been moving over to httpyac lately for the scripting and cli use. Will take a look to see if hurl is a good fit.

One annoying thing I've found in testing these tools is that a standard hasn't emerged for using the results of one request as input for another in the syntax of `.http` files. These three tools for instance have three different ways of doing it:

* hurl uses `[Captures]`

* Vscode-restclient does it by referencing request names in a variable declaration (like: `@token = {{loginAPI.response.body.token}}`).

* While httpyac uses `@ref` syntax.

From a quick round of testing it seems like using the syntax for one might break the other tools.

[1]: https://hurl.dev/docs/capturing-response.html

[2]: https://github.com/Huachao/vscode-restclient

[3]: https://httpyac.github.io/guide/metaData.html#ref-and-forcer...

replies(2): >>44326074 #>>44326203 #
1. jiggawatts ◴[] No.44326203[source]
What's really special is that Visual Studio Code and Visual Studio both have .HTTP files... which are incompatible with each other.

Conway's Law in action, ladies and gentlemen.