Sha256: c8543bb6fab9a464b35ce6b0b4df0aed014bc2c55e0ba4ce1fb6b0d7c727bb5c
Contents?: true
Size: 465 Bytes
Versions: 13
Compression:
Stored size: 465 Bytes
Contents
# -*- encoding: binary -*- # Copyright (C) 2013-2016 all contributors <yahns-public@yhbt.net> # License: GPLv2 or later (https://www.gnu.org/licenses/gpl-2.0.txt) # frozen_string_literal: true class Yahns::MaxBody::RewindableWrapper < Yahns::MaxBody::Wrapper # :nodoc: def initialize(rack_input, limit) @orig_limit = limit super end def rewind @limit = @orig_limit @rbuf = ''.dup @input.rewind end def size @input.size end end
Version data entries
13 entries across 13 versions & 1 rubygems