lib/rsaml/binding/http_redirect.rb
# Decoding implementation for HTTP Redirect binding :
#  * URI decode
#  * Base 64
#  * Inflate
#
# All procedures are optional and can skipped by passing `:skip_unescape`,
# `:skip_decode` and `:skip_inflate`.
Decoding implementation for HTTP Redirect binding :
URI decode
Base 64
Inflate


Decoding implementation for HTTP Redirect binding : URI decode Base 64 Inflate
def decode(xml, options = {})
          unescaped = options[:skip_unescape] ? xml : CGI.unescape(xml)
          decoded = options[:skip_decode] ? unescaped : Base64.decode64(unescaped)
          inflated = options[:skip_inflate] ? decoded : Zlib::Inflate.new(-Zlib::MAX_WBITS).inflate(decoded)
        end
def decode ( xml , options = { } ) unescaped = options [ :skip_unescape ] ? xml : CGI . unescape ( xml ) decoded = options [ :skip_decode ] ? unescaped : Base64 . decode64 ( unescaped ) inflated = options [ :skip_inflate ] ? decoded : Zlib :: Inflate . new ( - Zlib :: MAX_WBITS ) . inflate ( decoded ) end
Decoding implementation for HTTP Redirect binding :
 URI decode
 Base 64
 Inflate
Decoding implementation for HTTP Redirect binding : URI decode Base 64 Inflate
# What's the magic `-Zlib::MAX_WBITS`? Basically see the doc on encode. # This is needed in order to actual work in reverse.
xml
options