Sha256: 7271d5b7272eeddeb970094000cb4445ee2a1314f9329930d79fdfc17b320ca8
Contents?: true
Size: 488 Bytes
Versions: 41
Compression:
Stored size: 488 Bytes
Contents
require 'fsr/listener' module FSR module Listener class HeaderAndContentResponse attr_reader :headers, :content def initialize(args = {}) @headers = args[:headers] @content = args[:content] strip_newlines end def strip_newlines @content.each {|k,v| v.chomp! if v.is_a?(String)} end # Keep backward compat with the other 2 people who use FSR def body @content end end end end
Version data entries
41 entries across 41 versions & 1 rubygems