I need to setup some client side certificates and private keys. Setting a callback to HTTPClient.setTLSSetupCallback does allow me to set such setting.
I want to parameterize the path of the certificates. Since the callback is a plain function there is no way to access state. So now I have to resort to some globals...
Why isn't the callback a delegate? Or why aren't the certificates part of the HTTPSettings like they are with the SMTP settings?