URI::HTTP.component
require 'uri' puts URI::HTTP.component # => [:scheme, :userinfo, :host, :port, :path, :query, :fragment]