Module: ActionDispatch::RequestCookieMethods
- Defined in:
- actionpack/lib/action_dispatch/middleware/cookies.rb
Instance Method Summary collapse
- #authenticated_encrypted_cookie_salt ⇒ Object
- #cookie_jar ⇒ Object
- #cookie_jar=(jar) ⇒ Object
- #cookies_digest ⇒ Object
- #cookies_rotations ⇒ Object
- #cookies_same_site_protection ⇒ Object
- #cookies_serializer ⇒ Object
- #encrypted_cookie_cipher ⇒ Object
- #encrypted_cookie_salt ⇒ Object
- #encrypted_signed_cookie_salt ⇒ Object
- #have_cookie_jar? ⇒ Boolean
- #key_generator ⇒ Object
- #secret_key_base ⇒ Object
- #signed_cookie_digest ⇒ Object
- #signed_cookie_salt ⇒ Object
- #use_authenticated_cookie_encryption ⇒ Object
- #use_cookies_with_metadata ⇒ Object
Instance Method Details
#authenticated_encrypted_cookie_salt ⇒ Object
| 50 51 52 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 50 def get_header Cookies::AUTHENTICATED_ENCRYPTED_COOKIE_SALT end | 
#cookie_jar ⇒ Object
| 13 14 15 16 17 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 13 def fetch_header("action_dispatch.cookies") do self. = Cookies::CookieJar.build(self, ) end end | 
#cookie_jar=(jar) ⇒ Object
| 30 31 32 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 30 def (jar) set_header "action_dispatch.cookies", jar end | 
#cookies_digest ⇒ Object
| 78 79 80 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 78 def get_header Cookies::COOKIES_DIGEST end | 
#cookies_rotations ⇒ Object
| 82 83 84 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 82 def get_header Cookies::COOKIES_ROTATIONS end | 
#cookies_same_site_protection ⇒ Object
| 74 75 76 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 74 def get_header(Cookies::COOKIES_SAME_SITE_PROTECTION)&.call(self) end | 
#cookies_serializer ⇒ Object
| 70 71 72 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 70 def get_header Cookies::COOKIES_SERIALIZER end | 
#encrypted_cookie_cipher ⇒ Object
| 58 59 60 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 58 def get_header Cookies::ENCRYPTED_COOKIE_CIPHER end | 
#encrypted_cookie_salt ⇒ Object
| 42 43 44 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 42 def get_header Cookies::ENCRYPTED_COOKIE_SALT end | 
#encrypted_signed_cookie_salt ⇒ Object
| 46 47 48 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 46 def get_header Cookies::ENCRYPTED_SIGNED_COOKIE_SALT end | 
#have_cookie_jar? ⇒ Boolean
| 26 27 28 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 26 def has_header? "action_dispatch.cookies" end | 
#key_generator ⇒ Object
| 34 35 36 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 34 def key_generator get_header Cookies::GENERATOR_KEY end | 
#secret_key_base ⇒ Object
| 66 67 68 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 66 def secret_key_base get_header Cookies::SECRET_KEY_BASE end | 
#signed_cookie_digest ⇒ Object
| 62 63 64 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 62 def get_header Cookies::SIGNED_COOKIE_DIGEST end | 
#signed_cookie_salt ⇒ Object
| 38 39 40 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 38 def get_header Cookies::SIGNED_COOKIE_SALT end | 
#use_authenticated_cookie_encryption ⇒ Object
| 54 55 56 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 54 def get_header Cookies::USE_AUTHENTICATED_COOKIE_ENCRYPTION end | 
#use_cookies_with_metadata ⇒ Object
| 86 87 88 | # File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 86 def get_header Cookies::USE_COOKIES_WITH_METADATA end |