SleepController

Public Instance Methods

big() click to toggle source

(Not documented)

    # File examples/rails-test-app/app/controllers/sleep_controller.rb, line 8
 8:   def big
 9:     render :text => "x" * (1024 * 1024 * 16)
10:   end
index() click to toggle source

(Not documented)

   # File examples/rails-test-app/app/controllers/sleep_controller.rb, line 4
4:   def index
5:     render :text => "Hello\n"
6:   end
post() click to toggle source

(Not documented)

    # File examples/rails-test-app/app/controllers/sleep_controller.rb, line 29
29:   def post
30:     if request.post?
31:       render :text => "OK\n"
32:     end
33:   end
seconds() click to toggle source

(Not documented)

    # File examples/rails-test-app/app/controllers/sleep_controller.rb, line 12
12:   def seconds
13:     begin
14:       sleep params[:id].to_i
15:       render :text => "Slept #{params[:id]} seconds\n"
16:     rescue
17:       render :text => "Hello\n"
18:     end
19:   end
upload() click to toggle source

(Not documented)

    # File examples/rails-test-app/app/controllers/sleep_controller.rb, line 21
21:   def upload
22:     if request.post?
23:       logger.info "file: #{params[:file].inspect}"
24:       sha1 = `sha1sum #{params[:file].path}`
25:       render :text => "OK #{sha1}\n"
26:     end
27:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.