Hacker News new | past | comments | ask | show | jobs | submit login

Great job to the team! Hurl is growing rapidly!

One question if someone knows: while testing an endpoint, authentication is always needed.

Having written the authentication in 1 file, how can I import this file at the beginning of every other file that requires authentication and the associated token?




It doesn't look like Hurl has any functionality for inclusions, macros, and the like. I'm not sure those would be the best way to store and use secrets anyway. But the docs say you can pass variables into hurl files via command line args and through the environment: https://hurl.dev/docs/templates.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: