Sha256: 28355be5af80b256baee9ba850bc40341ebca3ad828a4fd3bfd437722b394d13
Contents?: true
Size: 963 Bytes
Versions: 3
Compression:
Stored size: 963 Bytes
Contents
module RestFtpDaemon module API class Root < Grape::API ####### GET /debug get '/raise' do info "GET /debug" begin raise RestFtpDaemon::DummyException rescue RestFtpDaemon::RestFtpDaemonException => exception status 501 api_error exception rescue Exception => exception status 501 api_error exception else status 200 {} end end # get '/memsize' do # info "GET /memsize" # ObjectSpace.each_object do |e| # #puts # print ObjectSpace.memsize_of(e) # print "\t" # print e.class.to_s # print "\t" # puts e.inspect[0..80] # # puts ({ # # klass: e.class, # # size: ObjectSpace.memsize_of(e), # # }.inspect) # # puts # end # status 200 # [] # end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rest-ftp-daemon-0.214.0 | lib/rest-ftp-daemon/api/debug.rb |
rest-ftp-daemon-0.213.0 | lib/rest-ftp-daemon/api/debug.rb |
rest-ftp-daemon-0.212.0 | lib/rest-ftp-daemon/api/debug.rb |