I've delved into the extensive documentation provided by JetBrains on their HTTP Client and how to incorporate requests using files with a .http extension.
The challenge I'm facing involves utilizing a function from a separate .js file within one of the .http request files. The explanation for achieving this is indicated as follows: "For external scripts, you need to enable it manually." However, the process for manual activation is not elaborated upon. Upon researching, I discovered that any custom JavaScript code/library must be added via
Settings-> Languages and Frameworks -> JavaScript -> Libraries
.
Therefore, my query pertains to whether anyone knows the method for importing custom JavaScript in an alternate location within a .http file? My JavaScript function is structured as such:
export default function writeResponse(response, client) { ... }