Pocket IC: intercepting http outcalls

I have a canister that I want to test that makes HTTP outcalls. This service is an external one that I want to mock out and respond to the canister without actually hitting the service. Is this possible? If so, how?

One alternative I considered is to use compile time environment variables (option_env! in rust) for testing, but that has a lot of overhead like actually running an HTTP(s?) server. This overhead wouldn’t exist if I can intercept the call right from pocket_ic and tell it how to respond to the canister

In a test suite, with PicJS - therefore I guess likewise with PocketIC - it’s possible to mock HTTP responses.

Not a direct answer to your question but, hope it could provide a pointer.