Replies: 2 comments 2 replies
-
Hi @infogulch, It's really interesting, but I think it'll be hard to implement. Right now, we've two major C dependencies that will be difficult to port on wasm: libcurl and libxml. As you're certainly aware, Hurl is heavily relying on libcurl to do HTTP exchanges and even is exposing many of its APIs. It will be difficult to have a wasm backend that replicate it (HTTP/3 for instance). That said, nothing prevents you to try to compile Hurl on wasm, if we can provide some help, don't hesitate to ask us! |
Beta Was this translation helpful? Give feedback.
-
It might be considered an advertisement, but it's free and can be used without signup so suggesting it here :) If the maintainers feel it's not suitable, please delete my comment or let me know to do it myself. You can use the Open Editor in https://www.skybear.net/scripts/open-editor/ to interactively test your Hurl scripts using an online UI and an online execution platform. You can pretty much use most of the Hurl options as well! The free open editor does not allow you to persist response bodies long-term, and is more rate limited than the actual signed in accounts, but it does the job for interactive script authoring. With signed in accounts, you get historical runs listing, and also response bodies persistence for later debugging. Try it out and let me know what you think. 👌 |
Beta Was this translation helpful? Give feedback.
-
hurl has been great for running automated tests against my server. I think it would be neat if hurl could be compiled to wasm and run in the browser so developers can experiment with and author hurl requests interactively.
I might expect a wasm module interface that references an external function that provides access to the fetch api and exposes a function that can execute a hurl request string. A usable interactive interface could be built up around such a primitive.
Aside from features that would have to be disabled because wasm doesn't have access, like reading from local files, it seems like this could be possible in theory.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions