lib/plezi/server/protocols/http_request.rb in plezi-0.7.6 vs lib/plezi/server/protocols/http_request.rb in plezi-0.7.7

- old
+ new

@@ -57,9 +57,14 @@ # the base url ([http/https]://host[:port]) def base_url switch_protocol = nil "#{switch_protocol || self[:requested_protocol]}://#{self[:host_name]}#{self[:port]? ":#{self[:port]}" : ''}" end + # the request's url, without any GET parameters ([http/https]://host[:port]/path) + def request_url switch_protocol = nil + "#{base_url switch_protocol}#{self[:original_path]}" + end + # the service (socket wrapper) that answered this request def service self[:plezi_service] end # the protocol managing this request