Sha256: 440605860614af824f044c4e147e9d589aef28e8e0d6685145749abe7651447d
Contents?: true
Size: 531 Bytes
Versions: 6
Compression:
Stored size: 531 Bytes
Contents
module Helmet class Response # Request environment attr_reader :env # HTTP response status attr_accessor :status # HTTP response header attr_accessor :header # HTTP response body attr_accessor :body def initialize(env) @env = env @status = 200 # Default OK! @header = {} @body = '' end # @return (Array) HTTP response tuple [status, header, body] def format_response [@status, @header, @body] end end end
Version data entries
6 entries across 6 versions & 1 rubygems