☰
rack 2.2.14 documentation

Class and Module Index

  • FCGI
    • Stream
  • Rack
    • Auth
      • AbstractHandler
      • AbstractRequest
      • Basic
        • Request
      • Digest
        • MD5
        • Nonce
        • Params
        • Request
    • BodyProxy
    • Builder
    • Cascade
    • Chunked
      • Body
      • TrailerBody
    • CommonLogger
    • ConditionalGet
    • Config
    • ContentLength
    • ContentType
    • Deflater
      • GzipStream
    • Directory
      • DirectoryBody
    • ETag
    • Events
      • Abstract
    • File
    • Files
      • BaseIterator
      • Iterator
    • ForwardRequest
    • Handler
      • CGI
      • FastCGI
      • LSWS
      • SCGI
      • Thin
      • WEBrick
    • Head
    • Lint
    • Lobster
    • Lock
    • Logger
    • MediaType
    • MethodOverride
    • Mime
    • MockRequest
      • FatalWarner
      • FatalWarning
    • MockResponse
    • Multipart
      • Generator
      • MultipartPartLimitError
      • MultipartTotalPartLimitError
      • Parser
        • Collector
          • BufferPart
          • MimePart
          • TempfilePart
      • UploadedFile
    • NullLogger
    • QueryParser
      • InvalidParameterError
      • ParameterTypeError
      • Params
      • ParamsTooDeepError
      • QueryLimitError
    • Recursive
    • RegexpExtensions
    • Reloader
      • Stat
    • Request
      • Env
      • Helpers
    • Response
      • Helpers
      • Raw
    • RewindableInput
    • Runtime
    • Sendfile
    • Server
      • Options
    • Session
      • Abstract
        • ID
        • Persisted
        • PersistedSecure
          • SecureSessionHash
        • SessionHash
      • Cookie
        • Base64
          • JSON
          • Marshal
          • ZipJSON
        • Identity
        • SessionId
      • Pool
      • SessionId
    • ShowExceptions
    • ShowStatus
    • Static
    • TempfileReaper
    • URLMap
    • Utils
      • Context
  • WEBrick
    • HTTPResponse

Pages

  • CHANGELOG
  • CONTRIBUTING
  • MIT-LICENSE
  • README
  • SECURITY_POLICY
  • SPEC
  • rdoc.css
  • example
    • lobster.ru
    • protectedlobster.ru

Generated by RDoc 6.12.0. Validate

RoRvsWild theme based on Darkfish.

class Rack::Session::Cookie::Base64::ZipJSON

Public Instance Methods

decode (str)
Calls superclass method Rack::Session::Cookie::Base64#decode
# File lib/rack/session/cookie.rb, line 90
def decode(str)
  return unless str
  ::JSON.parse(Zlib::Inflate.inflate(super(str)))
rescue
  nil
end
encode (obj)
Calls superclass method Rack::Session::Cookie::Base64#encode
# File lib/rack/session/cookie.rb, line 86
def encode(obj)
  super(Zlib::Deflate.deflate(::JSON.dump(obj)))
end

Ancestors

  • Rack::Session::Cookie::Base64
    • Object

Instance Methods

  • decode
  • encode