Title: Add AbstractURL type · Issue #127 · python-hyper/hyperlink · GitHub
Open Graph Title: Add AbstractURL type · Issue #127 · python-hyper/hyperlink
X Title: Add AbstractURL type · Issue #127 · python-hyper/hyperlink
Description: Per @wsanchez and @twm in #126, consensus seems to be that hyperlink would benefit from an interface/ABC which could be for both DecodedURL and URL/EncodedURL. AbstractURL is the current name frontrunner, as URL is already taken for lega...
Open Graph Description: Per @wsanchez and @twm in #126, consensus seems to be that hyperlink would benefit from an interface/ABC which could be for both DecodedURL and URL/EncodedURL. AbstractURL is the current name front...
X Description: Per @wsanchez and @twm in #126, consensus seems to be that hyperlink would benefit from an interface/ABC which could be for both DecodedURL and URL/EncodedURL. AbstractURL is the current name front...
Opengraph URL: https://github.com/python-hyper/hyperlink/issues/127
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add AbstractURL type","articleBody":"Per @wsanchez and @twm in #126, consensus seems to be that hyperlink would benefit from an interface/ABC which could be for both DecodedURL and URL/EncodedURL.\r\n\r\n`AbstractURL` is the current name frontrunner, as `URL` is already taken for legacy reasons.\r\n\r\nTo [quote](https://github.com/python-hyper/hyperlink/pull/126#discussion_r407115179) @twm:\r\n\r\n> These methods seem to be equivalent between URL and DecodedURL in the sense that they do semantically identical things:\r\n> \r\n> to_text()\r\n> to_uri()\r\n> to_iri()\r\n> normalize()\r\n> absolute\r\n> scheme\r\n> port\r\n> rooted\r\n> \r\n> `__bytes__` should probably be on this list (per #55). DecodedURL appears to lack it.\r\n> \r\n> I'd also suggest that URL's get_decoded_url() method and DecodedURL's encoded_url property should be part of any common interface. This would be useful in treq to avoid a chain of isinstance() checks.\r\n> \r\n> click() is also similar between the two, though only the DecodedURL version accepts a DecodedURL.\r\n\r\nFurther discussion to follow, no doubt.\r\n","author":{"url":"https://github.com/mahmoud","@type":"Person","name":"mahmoud"},"datePublished":"2020-04-14T00:25:18Z","url":"https://github.com/python-hyper/hyperlink/issues/127"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ea7864cd-e0cd-b8ae-e1c7-9fbc48a0decb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D55C:23DC75:1D6CC49:28C01B4:6B06E7B4 |
| html-safe-nonce | 7b71aa6c35636170e66d4591a5762b2e69417eaefb120e6a772412b1ac7b64b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTVDOjIzREM3NToxRDZDQzQ5OjI4QzAxQjQ6NkIwNkU3QjQiLCJ2aXNpdG9yX2lkIjoiNDc2ODY1NDMxNzgxOTU5NjA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2e66db75cbc0f9752789634f1e2463f269afb10df0b0eb7432528c6b2279adad |
| hovercard-subject-tag | issue:599213760 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/hyperlink/127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/646e49fc02a2b2effee7416533da2eb13c50d55e011a71f66d6f3e6c2ae90357/python-hyper/hyperlink/issues/127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/646e49fc02a2b2effee7416533da2eb13c50d55e011a71f66d6f3e6c2ae90357/python-hyper/hyperlink/issues/127 |
| og:image:alt | Per @wsanchez and @twm in #126, consensus seems to be that hyperlink would benefit from an interface/ABC which could be for both DecodedURL and URL/EncodedURL. AbstractURL is the current name front... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mahmoud |
| hostname | github.com |
| expected-hostname | github.com |
| None | 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/hyperlink git https://github.com/python-hyper/hyperlink.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 82321340 |
| octolytics-dimension-repository_nwo | python-hyper/hyperlink |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82321340 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyperlink |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af8913cd0f2f77c41796be449ac66a9108825abc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width