Add incomplete implementation of HTTP/HTTPS switching.