Sha256: c6f8b8df2419609ae230b41307cc70e9826796e1f869956b23f11f4f3e623927

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

module NYNY
  class Request < Rack::Request
  end

  class Response < Rack::Response
    def rewrite str
      @body   = []
      @length = 0
      header.delete "Content-Type"
      header.delete "Content-Length"
      write str
    end
    alias_method :body=, :rewrite
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nyny-3.2.1 lib/nyny/primitives.rb
nyny-3.2.0 lib/nyny/primitives.rb
nyny-3.1.0 lib/nyny/primitives.rb