module ActionDispatch::RequestCookieMethods

def authenticated_encrypted_cookie_salt

def authenticated_encrypted_cookie_salt
  get_header Cookies::AUTHENTICATED_ENCRYPTED_COOKIE_SALT
end

def commit_cookie_jar!

def commit_cookie_jar!
  cookie_jar.commit!
end

def cookie_jar

def cookie_jar
  fetch_header("action_dispatch.cookies") do
    self.cookie_jar = Cookies::CookieJar.build(self, cookies)
  end
end

def cookie_jar=(jar)

def cookie_jar=(jar)
  set_header "action_dispatch.cookies", jar
end

def cookies_digest

def cookies_digest
  get_header Cookies::COOKIES_DIGEST
end

def cookies_rotations

def cookies_rotations
  get_header Cookies::COOKIES_ROTATIONS
end

def cookies_same_site_protection

def cookies_same_site_protection
  get_header(Cookies::COOKIES_SAME_SITE_PROTECTION) || Proc.new { }
end

def cookies_serializer

def cookies_serializer
  get_header Cookies::COOKIES_SERIALIZER
end

def encrypted_cookie_cipher

def encrypted_cookie_cipher
  get_header Cookies::ENCRYPTED_COOKIE_CIPHER
end

def encrypted_cookie_salt

def encrypted_cookie_salt
  get_header Cookies::ENCRYPTED_COOKIE_SALT
end

def encrypted_signed_cookie_salt

def encrypted_signed_cookie_salt
  get_header Cookies::ENCRYPTED_SIGNED_COOKIE_SALT
end

def have_cookie_jar?

def have_cookie_jar?
  has_header? "action_dispatch.cookies"
end

def key_generator

def key_generator
  get_header Cookies::GENERATOR_KEY
end

def secret_key_base

def secret_key_base
  get_header Cookies::SECRET_KEY_BASE
end

def signed_cookie_digest

def signed_cookie_digest
  get_header Cookies::SIGNED_COOKIE_DIGEST
end

def signed_cookie_salt

def signed_cookie_salt
  get_header Cookies::SIGNED_COOKIE_SALT
end

def use_authenticated_cookie_encryption

def use_authenticated_cookie_encryption
  get_header Cookies::USE_AUTHENTICATED_COOKIE_ENCRYPTION
end

def use_cookies_with_metadata

def use_cookies_with_metadata
  get_header Cookies::USE_COOKIES_WITH_METADATA
end