{"issue":{"milestone":null,"title":"Manage subdomains","created_at":"2011-12-29T15:30:17Z","user":{"login":"juandazapata","id":145506,"url":"https://api.github.com/users/juandazapata","avatar_url":"https://secure.gravatar.com/avatar/f9e1a5cd6afb7764f7a8e8a30d4debb6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f9e1a5cd6afb7764f7a8e8a30d4debb6"},"labels":[],"updated_at":"2011-12-30T14:28:50Z","state":"open","id":2680140,"closed_at":null,"html_url":"https://github.com/medialize/URI.js/issues/4","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"It would be nice if the library supports subdomain management as well.\r\n\r\n__Add a subdomain:__\r\n\r\n```URI(\"http://example.org/foo.html?hello=world\").addSubdomain(\"signup\"); ```    \r\nReturns  \r\n```http://signup.example.org/foo.html?hello=world```  \r\n\r\n__Add another subdomain:__\r\n\r\n```URI(\"http://signup.example.org/foo.html?hello=world\").addSubdomain(\"another\"); ```  \r\nReturns  \r\n```http://another.signup.example.org/foo.html?hello=world```  \r\n\r\n__Remove a subdomain:__   \r\n\r\n`URI(\"http://example.org/foo.html?hello=world\").removeSubdomain(\"nonexistant\"); `  \r\nReturns  \r\n`http://example.org/foo.html?hello=world`\r\n\r\n__Remove a non-existant subdomain:__   \r\n\r\n`URI(\"http://example.org/foo.html?hello=world\").removeSubdomain(\"nonexistant\"); `  \r\nReturns  \r\n`http://example.org/foo.html?hello=world`","number":4,"url":"https://api.github.com/repos/medialize/URI.js/issues/4","comments":4,"assignee":null},"comment":{"created_at":"2011-12-30T14:28:50Z","user":{"login":"rodneyrehm","id":186837,"url":"https://api.github.com/users/rodneyrehm","avatar_url":"https://secure.gravatar.com/avatar/c48d4d0917d5b97e6830e0fe5dc2a13c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c48d4d0917d5b97e6830e0fe5dc2a13c"},"updated_at":"2011-12-30T14:28:50Z","id":3313527,"body":"`.subdomain()` has been added in 1.3.0. enjoy.","url":"https://api.github.com/repos/medialize/URI.js/issues/comments/3313527"},"action":"created"}