title: What is the most succinct way to redirect HTTP requests to HTTPS in Scalatra?
body: <p>I have a service written in Scala with Scalatra and running on AWS ECS listening through an AWS ELB. I have ELB configured as a TLS terminator: HTTPS traffic on port 443 and HTTP traffic on port 80 are routed to the service listening on port 8080 on the ECS task.</p>
  
  <p>I want to redirect all HTTP traffic to HTTPS. I understand that ELB sets the header <code>X-Forwarded-Proto</code> to either <code>http</code> or <code>https</code> according to the original request.</p>
  
  <p>What's the best way to handle a redirect?</p>