{"action":"created","issue":{"url":"https://api.github.com/repos/php-fig/fig-standards/issues/480","labels_url":"https://api.github.com/repos/php-fig/fig-standards/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/php-fig/fig-standards/issues/480/comments","events_url":"https://api.github.com/repos/php-fig/fig-standards/issues/480/events","html_url":"https://github.com/php-fig/fig-standards/pull/480","id":65541370,"number":480,"title":"[PSR-7] Scheme delimiters clarification","user":{"login":"weierophinney","id":25943,"avatar_url":"https://avatars.githubusercontent.com/u/25943?v=3","gravatar_id":"","url":"https://api.github.com/users/weierophinney","html_url":"https://github.com/weierophinney","followers_url":"https://api.github.com/users/weierophinney/followers","following_url":"https://api.github.com/users/weierophinney/following{/other_user}","gists_url":"https://api.github.com/users/weierophinney/gists{/gist_id}","starred_url":"https://api.github.com/users/weierophinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weierophinney/subscriptions","organizations_url":"https://api.github.com/users/weierophinney/orgs","repos_url":"https://api.github.com/users/weierophinney/repos","events_url":"https://api.github.com/users/weierophinney/events{/privacy}","received_events_url":"https://api.github.com/users/weierophinney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-31T20:45:03Z","updated_at":"2015-04-03T01:46:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/php-fig/fig-standards/pulls/480","html_url":"https://github.com/php-fig/fig-standards/pull/480","diff_url":"https://github.com/php-fig/fig-standards/pull/480.diff","patch_url":"https://github.com/php-fig/fig-standards/pull/480.patch"},"body":"A [discussion on the mailing list](https://groups.google.com/d/msgid/php-fig/db3d5421-30a5-4135-9f9e-fe432f03d719%40googlegroups.com?utm_medium=email&utm_source=footer) raised the point that `:` is the actual scheme delimiter. In reviewing [RFC 3986 section 3](https://tools.ietf.org/html/rfc3986#section-3), I noted that `:` is the end delimiter for a scheme, and `//` is the opening delimiter for the authority. Since the `UriInterface` does not allow setting the authority in a single go, the only time the `//` delimiter will likely be used is as part of the scheme, making the current wording valid. However, the wording should also note that a trailing `:` delimiter MUST be removed as well.\r\n\r\nThis patch updates the `UriInterface`'s `withScheme()` and `getScheme()` methods to clarify that either the `:` or `://`, when present, MUST be removed."},"comment":{"url":"https://api.github.com/repos/php-fig/fig-standards/issues/comments/89112883","html_url":"https://github.com/php-fig/fig-standards/pull/480#issuecomment-89112883","issue_url":"https://api.github.com/repos/php-fig/fig-standards/issues/480","id":89112883,"user":{"login":"simensen","id":191200,"avatar_url":"https://avatars.githubusercontent.com/u/191200?v=3","gravatar_id":"","url":"https://api.github.com/users/simensen","html_url":"https://github.com/simensen","followers_url":"https://api.github.com/users/simensen/followers","following_url":"https://api.github.com/users/simensen/following{/other_user}","gists_url":"https://api.github.com/users/simensen/gists{/gist_id}","starred_url":"https://api.github.com/users/simensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simensen/subscriptions","organizations_url":"https://api.github.com/users/simensen/orgs","repos_url":"https://api.github.com/users/simensen/repos","events_url":"https://api.github.com/users/simensen/events{/privacy}","received_events_url":"https://api.github.com/users/simensen/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T01:46:44Z","updated_at":"2015-04-03T01:46:44Z","body":"If this is still the direction we are heading, I'm :+1: on removing the discussion of the delimiters altogether and possibly moving that to the metadoc."}}