class Kwipper::Request
Attributes
headers[RW]
http_method[RW]
params[R]
path[RW]
post_data[RW]
query[RW]
Public Class Methods
new() { |self| ... }
click to toggle source
# File lib/kwipper/request.rb, line 6 def initialize @post_data = {} yield self end
Public Instance Methods
content_length()
click to toggle source
# File lib/kwipper/request.rb, line 27 def content_length headers.content_length end
info()
click to toggle source
# File lib/kwipper/request.rb, line 11 def info "#{http_method} #{path}" end
post_data?()
click to toggle source
# File lib/kwipper/request.rb, line 31 def post_data? http_method == 'POST' && headers.has_content? end
route_key()
click to toggle source
# File lib/kwipper/request.rb, line 15 def route_key [http_method.to_sym, path] end