{"id":28569386,"url":"https://github.com/instantwebp2p/connect-httpp","last_synced_at":"2025-06-10T17:14:47.910Z","repository":{"id":12010062,"uuid":"14591010","full_name":"InstantWebP2P/connect-httpp","owner":"InstantWebP2P","description":"Connect middleware to set httpp capacity flag in res.headers.alternate-protocol","archived":false,"fork":false,"pushed_at":"2019-12-23T20:43:49.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T17:14:47.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InstantWebP2P.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-21T15:17:17.000Z","updated_at":"2019-12-23T20:43:51.000Z","dependencies_parsed_at":"2022-07-21T16:18:30.443Z","dependency_job_id":null,"html_url":"https://github.com/InstantWebP2P/connect-httpp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstantWebP2P%2Fconnect-httpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstantWebP2P%2Fconnect-httpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstantWebP2P%2Fconnect-httpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstantWebP2P%2Fconnect-httpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InstantWebP2P","download_url":"https://codeload.github.com/InstantWebP2P/connect-httpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InstantWebP2P%2Fconnect-httpp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259114721,"owners_count":22807255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T17:14:45.560Z","updated_at":"2025-06-10T17:14:47.896Z","avatar_url":"https://github.com/InstantWebP2P.png","language":"JavaScript","readme":"connect-httpp\n=============\n\nConnect middleware to set httpp capacity flag in res.headers.alternate-protocol \n\n\n### Usage/API\n\n    1. create connect app\n    var connect = require('connect');\n    var app = connect(), app1 = connect();\n    var httpp = require('connect-httpp');\n\n    2. mount connect-httpp middleware\n    app.use(httpp(80)); // fill httpp server port, then httpp:80 will set in res.headers.alternate-protocol\n\n    3. mount application\n    app.use(businessLogic);\n    app1.use(businessLogic);\n    \n    4. start both http and httpp server\n    var srvHttp = require('http').createServer(app);\n    var srvHttpp = require('httpp').createServer(app1);\n    srvHttp.listen(80); // listen on tcp 80\n    srvHttpp.listen(80); // listen on udp 80\n    \n    5. then, both tcp:80 and udp:80 will serve application.\n    \n### connect-httpp is working with httpp-forward, please run [httpp-forward proxy](https://github.com/InstantWebP2P/httpp-forward) on browser side.  \n\n\n\u003cbr/\u003e\n### License\n\n(The MIT License)\n\nCopyright (c) 2012-present Tom Zhou(iwebpp@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstantwebp2p%2Fconnect-httpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstantwebp2p%2Fconnect-httpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstantwebp2p%2Fconnect-httpp/lists"}