class Puma::NullIO
Provides an IO-like object that always appears to contain no data. Used as the value for rack.input when the request has no body.
Public Instance Methods
close()
click to toggle source
Does nothing
# File lib/puma/null_io.rb, line 31 def close end
each()
click to toggle source
Never yields
# File lib/puma/null_io.rb, line 15 def each end
gets()
click to toggle source
Always returns nil
# File lib/puma/null_io.rb, line 9 def gets nil end
read(count=nil,buffer=nil)
click to toggle source
Mimics IO#read with no data
# File lib/puma/null_io.rb, line 20 def read(count=nil,buffer=nil) (count && count > 0) ? nil : "" end
rewind()
click to toggle source
Does nothing
# File lib/puma/null_io.rb, line 26 def rewind end