Class: Rack::BlacklistCookies::RequestScrubber

Inherits:
BaseScrubber
  • Object
show all
Defined in:
lib/rack/blacklist_cookies/scrubber.rb

Overview

RequestScrubber is responsible for parsing and configuring the request according to RFC-6252 tools.ietf.org/html/rfc6265#section-5.4 developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie

Instance Attribute Summary

Attributes inherited from BaseScrubber

#env

Instance Method Summary collapse

Methods inherited from BaseScrubber

#initialize, #to_s

Constructor Details

This class inherits a constructor from Rack::BlacklistCookies::BaseScrubber

Instance Method Details

#blacklistObject



42
43
44
# File 'lib/rack/blacklist_cookies/scrubber.rb', line 42

def blacklist
  BlacklistCookies.request_blacklist(env)
end

#joinerObject



50
51
52
# File 'lib/rack/blacklist_cookies/scrubber.rb', line 50

def joiner
  "; "
end

#splitterObject



46
47
48
# File 'lib/rack/blacklist_cookies/scrubber.rb', line 46

def splitter
  /[;,] */n
end