class ActionDispatch::Integration::Session

def https?

end
...
if session.https?

Returns +true+ if the session is mimicking a secure HTTPS request.
def https?
  @https
end