Sha256: 404e4c816c735efe522fa50e9b6434b1ac89ad1c17e001572ccae22a94c60e11
Contents?: true
Size: 1018 Bytes
Versions: 1
Compression:
Stored size: 1018 Bytes
Contents
require 'reel' require 'json' # require 'ruby-prof' # # RubyProf.start # RubyProf.pause module Angelo GET = 'GET'.freeze POST = 'POST'.freeze PUT = 'PUT'.freeze DELETE = 'DELETE'.freeze OPTIONS = 'OPTIONS'.freeze ROUTABLE = [:get, :post, :put, :delete, :socket] HTTPABLE = [:get, :post, :put, :delete] CONTENT_TYPE_HEADER_KEY = 'Content-Type'.freeze HTML_TYPE = 'text/html'.freeze JSON_TYPE = 'application/json'.freeze FORM_TYPE = 'application/x-www-form-urlencoded'.freeze DEFAULT_ADDR = '127.0.0.1'.freeze DEFAULT_PORT = 4567 DEFAULT_RESPONSE_HEADERS = { CONTENT_TYPE_HEADER_KEY => HTML_TYPE } NOT_FOUND = 'Not Found'.freeze end require 'angelo/version' require 'angelo/params_parser' require 'angelo/server' require 'angelo/base' require 'angelo/responder' require 'angelo/responder/websocket' # trap "INT" do # result = RubyProf.stop # printer = RubyProf::MultiPrinter.new(result) # printer.print(path: './profiler', profile: 'foo') # exit # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angelo-0.0.7 | lib/angelo.rb |