First of all your use case is not clear. Anyhow there are couple of ways to solve like
* Have different virtual host for http & https. Use different dispatcher configuration for each host.
* Manupulate the http headers using rewrite rule. Example to include query parameter for https request.