René's URL Explorer Experiment


Title: Added the possibility of passing an external socket to HTTP20Connection by ocampana · Pull Request #418 · python-hyper/hyper · GitHub

Open Graph Title: Added the possibility of passing an external socket to HTTP20Connection by ocampana · Pull Request #418 · python-hyper/hyper

X Title: Added the possibility of passing an external socket to HTTP20Connection by ocampana · Pull Request #418 · python-hyper/hyper

Description: ONVIF defines the Uplink service based on HTTP/2 and connection reversal, in order to have cameras connect to cloud services while having NAT between themselves and the remote service (For details, https://www.onvif.org/specs/srv/uplink/ONVIF-Uplink-Spec.pdf) With this patch, it is possible on the cloud side to accept an incoming connection from a listining socket and to pass the new socket to HTTP20Connection, so that the cloud software can use the reverted connection and turn itself into a client. Example code for implementing it: import socket, ssl, time from hyper import HTTP20Connection from hyper.common.bufsocket import BufferedSocket context = ssl.SSLContext (ssl.PROTOCOL_TLSv1_2) context.load_cert_chain ("server.cert", "server.key") bindsocket = socket.socket () bindsocket.bind(('', 8081)) bindsocket.listen(5) with context.wrap_socket (bindsocket, server_side=True) as ssock: while True: newsocket, fromaddr = ssock.accept() req = newsocket.read () if b'Connection: Upgrade' in req and b'Upgrade: h2c-reverse': newsocket.write (b'HTTP/1.1 101 Switching Protocols\r\nConnection: Upgrade\r\nUpgrade: h2c-reverse\r\n\r\n') newsocket.write (b'PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n') c = HTTP20Connection ('unused.org', external_socket = BufferedSocket (newsocket)) c.request('POST', '/onvif/device_service', headers = { 'Content-Type': 'application/soap+xml; charset=utf-8'}, body=b'')) resp = c.get_response () print (resp.read ())

Open Graph Description: ONVIF defines the Uplink service based on HTTP/2 and connection reversal, in order to have cameras connect to cloud services while having NAT between themselves and the remote s...

X Description: ONVIF defines the Uplink service based on HTTP/2 and connection reversal, in order to have cameras connect to cloud services while having NAT between themselves and the remote s...

Opengraph URL: https://github.com/python-hyper/hyper/pull/418

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:f20c5284-23c2-1532-b1a1-87e481cd9d9c
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idCBA6:EB10B:1807DC4:2069F03:69706E77
html-safe-nonce372ec0f48fb19022d5f1f5e205543b0ad9246850529d52e6d73db48b07c09ad6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkE2OkVCMTBCOjE4MDdEQzQ6MjA2OUYwMzo2OTcwNkU3NyIsInZpc2l0b3JfaWQiOiIzNjEzODk2OTczMzg0NDQ1NTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1b5450a35e24280f46eec69cc61c53ff674a0c9bf2f54ee2d9bd7b5df56dce4c
hovercard-subject-tagpull_request:308510899
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-hyper/hyper/pull/418/checks
twitter:imagehttps://avatars.githubusercontent.com/u/1564115?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1564115?s=400&v=4
og:image:altONVIF defines the Uplink service based on HTTP/2 and connection reversal, in order to have cameras connect to cloud services while having NAT between themselves and the remote s...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
go-importgithub.com/python-hyper/hyper git https://github.com/python-hyper/hyper.git
octolytics-dimension-user_id13035907
octolytics-dimension-user_loginpython-hyper
octolytics-dimension-repository_id16165969
octolytics-dimension-repository_nwopython-hyper/hyper
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16165969
octolytics-dimension-repository_network_root_nwopython-hyper/hyper
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d6181066430cc06553c8396ca201e194ae33cb9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-hyper%2Fhyper%2Fpull%2F418%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-hyper%2Fhyper%2Fpull%2F418%2Fchecks
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=python-hyper%2Fhyper
Reloadhttps://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks
Reloadhttps://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks
Reloadhttps://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks
python-hyper https://patch-diff.githubusercontent.com/python-hyper
hyperhttps://patch-diff.githubusercontent.com/python-hyper/hyper
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-hyper%2Fhyper
Fork 197 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-hyper%2Fhyper
Star 1k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-hyper%2Fhyper
Code https://patch-diff.githubusercontent.com/python-hyper/hyper
Issues 78 https://patch-diff.githubusercontent.com/python-hyper/hyper/issues
Pull requests 23 https://patch-diff.githubusercontent.com/python-hyper/hyper/pulls
Actions https://patch-diff.githubusercontent.com/python-hyper/hyper/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python-hyper/hyper/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks
Insights https://patch-diff.githubusercontent.com/python-hyper/hyper/pulse
Code https://patch-diff.githubusercontent.com/python-hyper/hyper
Issues https://patch-diff.githubusercontent.com/python-hyper/hyper/issues
Pull requests https://patch-diff.githubusercontent.com/python-hyper/hyper/pulls
Actions https://patch-diff.githubusercontent.com/python-hyper/hyper/actions
Security https://patch-diff.githubusercontent.com/python-hyper/hyper/security
Insights https://patch-diff.githubusercontent.com/python-hyper/hyper/pulse
ocampanahttps://patch-diff.githubusercontent.com/ocampana
python-hyper:developmenthttps://patch-diff.githubusercontent.com/python-hyper/hyper/tree/development
ocampana:developmenthttps://patch-diff.githubusercontent.com/ocampana/hyper/tree/development
Conversation 0 https://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418
Commits 1 https://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/commits
Checks 0 https://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks
Files changed https://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks
Please reload this pagehttps://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks
Added the possibility of passing an external socket to HTTP20Connection https://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks#top
Please reload this pagehttps://patch-diff.githubusercontent.com/python-hyper/hyper/pull/418/checks
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.