Sha256: 3ae8ff403f12e07259d225d228c10d7be8e9a71dca2f5749714bf47e8944c77e
Contents?: true
Size: 341 Bytes
Versions: 3
Compression:
Stored size: 341 Bytes
Contents
module Crystal class Request < Rack::Request # Returns an array of acceptable media types for the response # def accept # @env['HTTP_ACCEPT'].to_s.split(',').map { |a| a.split(';')[0].strip } # end # # def secure? # (@env['HTTP_X_FORWARDED_PROTO'] || @env['rack.url_scheme']) == 'https' # end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
crystal-0.0.13 | lib/crystal/http/support/rack/request.rb |
crystal-0.0.12 | lib/crystal/http/support/rack/request.rb |
crystal_ext-0.0.11 | lib/crystal/http/support/rack/request.rb |