# File lib_core/rucy/request.rb, line 102 def uri=(new_uri) @uri = new_uri case (@uri) when %"^/" @path, @query = Request.normalize(@uri) when %"^https?://([^/\s]+)(/.*)?$" set_header('Host', $1) if ($2 && ! $2.empty?) then @path, @query = Request.normalize($2) else @path, @query = '/', nil end else @path, @query = nil, nil end new_uri end