I want to configure with Cloudflare worker a/b testing for HTTP protocol.
I want 50% of the traffic to be redirected to my site with HTTPS - 50% and with HTTP - 50%.
I searched the web and was unable to find a configuration for this.
I know how to configure A/B test with the worker its documented well but I wasn’t able to find a method for capturing the request and switching between HTTP and HTTPS.
I’m not so experienced with working with requests and responses.
any guidelines or examples will be great.