Class: Tzispa::Http::Request
- Inherits:
-
Rack::Request
- Object
- Rack::Request
- Tzispa::Http::Request
- Defined in:
- lib/tzispa/http/request.rb
Instance Method Summary collapse
Instance Method Details
#forwarded? ⇒ Boolean
13 14 15 |
# File 'lib/tzispa/http/request.rb', line 13 def forwarded? env.include? "HTTP_X_FORWARDED_HOST" end |
#idempotent? ⇒ Boolean
21 22 23 |
# File 'lib/tzispa/http/request.rb', line 21 def idempotent? safe? or put? or delete? or link? or unlink? end |
#link? ⇒ Boolean
25 26 27 |
# File 'lib/tzispa/http/request.rb', line 25 def link? request_method == "LINK" end |
#safe? ⇒ Boolean
17 18 19 |
# File 'lib/tzispa/http/request.rb', line 17 def safe? get? or head? or or trace? end |
#unlink? ⇒ Boolean
29 30 31 |
# File 'lib/tzispa/http/request.rb', line 29 def unlink? request_method == "UNLINK" end |