Notes posted by pratap
RSS feed
0 thanks
URI Module
Uniform handling of handling URIs
Flexibility to introduce custom URI schemes
Flexibility to have an alternate URI::Parser
For Example
require ‘uri’
uri = URI(“http://test.com/posts?id=30&limit=5#time=1305298413”)
uri.scheme #=> “http”
uri.host #=> “test.com”
uri.path #=> “/posts”