Feature request: be able to specify localhost with port as endpoint using config #29
Description
As a developer, I would like to be able to direct the ATI library's network requests to e.g. https://localhost:9000/endpoint so that I can write instrumented end-to-end tests that use a mock HTTP server on the device and verify that the right calls are made.
In the documentation for Configuration, it appears that we can set subdomain, domain and path in order to achieve this.
However:
-
It would be good to be able to omit subdomain, perhaps by specifiying an empty string as
log
orlogSSL
. Currently this seems to stop production of all requests, and it looks like the code inBuilder
will always add a period separator, so that's probably why. To send tolocalhost
we would therefore have to use a workaround with a subdomain of127
and a domain of0.0.1
. -
It would be good to be able to specify a port. This is not currently a documented option in config.
Thanks!