module NginxTail::HttpMethod
Public Class Methods
to_http_method_s(http_method)
click to toggle source
# File lib/ntail/http_method.rb, line 13 def self.to_http_method_s(http_method) (http_method ||= "").upcase! # will be nil if $request == "-" (ie. "dodgy" HTTP requests) case http_method when "POST", "PUT", "DELETE" http_method.inverse # if Sickill::Rainbow.enabled... else http_method end end
Public Instance Methods
to_http_method_s()
click to toggle source
# File lib/ntail/http_method.rb, line 29 def to_http_method_s self.class.to_http_method_s(self.http_method) end