class Rack::Test::Cookie

def secure?

an encrypted connection.
Whether the cookie has the secure flag, indicating it can only be sent over
def secure?
  @options.key?('secure')
end