Https is almost always terminated separately from the application code.