René's URL Explorer Experiment


Title: Cannot register multiple endpoints · Issue #47 · etr/libhttpserver · GitHub

Open Graph Title: Cannot register multiple endpoints · Issue #47 · etr/libhttpserver

X Title: Cannot register multiple endpoints · Issue #47 · etr/libhttpserver

Description: Included is a test case to register multiple endpoints. This test fails. Is this a bug, or a misuse of the API? If this is bug, will you please confirm this is a valid test case, and I will continue diving into it. Thank you for your tim...

Open Graph Description: Included is a test case to register multiple endpoints. This test fails. Is this a bug, or a misuse of the API? If this is bug, will you please confirm this is a valid test case, and I will continu...

X Description: Included is a test case to register multiple endpoints. This test fails. Is this a bug, or a misuse of the API? If this is bug, will you please confirm this is a valid test case, and I will continu...

Opengraph URL: https://github.com/etr/libhttpserver/issues/47

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot register multiple endpoints","articleBody":"Included is a test case to register multiple endpoints. This test fails.  Is this a bug, or a misuse of the API? If this is bug, will you please confirm this is a valid test case, and I will continue diving into it.  Thank you for your time.\n\nSincerely,\nJeremy Wright\n\n``` c++\nclass Ok_resource : public http_resource\u003cOk_resource\u003e\n{\n    public:\n        void render_GET(const http_request\u0026 req, http_response** res)\n        {\n            *res = new http_string_response(\"OK\", 200, \"text/plain\");\n        }\n};\n\nclass Nok_resource : public http_resource\u003cNok_resource\u003e\n{\n    public:\n        void render_GET(const http_request\u0026 req, http_response** res)\n        {\n            *res = new http_string_response(\"NOK\", 200, \"text/plain\");\n        }\n};\n\nLT_BEGIN_AUTO_TEST(basic_suite, two_endpoints)\n\n    Ok_resource* ok = new Ok_resource();\n    ws-\u003eregister_resource(\"OK\", ok);\n    Nok_resource* nok = new Nok_resource();\n    ws-\u003eregister_resource(\"NOK\", nok);\n\n    curl_global_init(CURL_GLOBAL_ALL);\n    std::string s;\n    {\n        CURL *curl = curl_easy_init();\n        CURLcode res;\n        curl_easy_setopt(curl, CURLOPT_URL, \"localhost:8080/OK\");\n        curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);\n        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writefunc);\n        curl_easy_setopt(curl, CURLOPT_WRITEDATA, \u0026s);\n        res = curl_easy_perform(curl);\n        LT_ASSERT_EQ(res, 0);\n        LT_CHECK_EQ(s, \"OK\");\n        curl_easy_cleanup(curl);\n    }\n\n    std::string t;\n    {        \n        CURL *curl = curl_easy_init();\n        CURLcode res;\n        curl_easy_setopt(curl, CURLOPT_URL, \"localhost:8080/NOK\");\n        curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);\n        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writefunc);\n        curl_easy_setopt(curl, CURLOPT_WRITEDATA, \u0026t);\n        res = curl_easy_perform(curl);\n        LT_ASSERT_EQ(res, 0);\n        LT_CHECK_EQ(t, \"NOK\");\n        curl_easy_cleanup(curl);\n    }\n\nLT_END_AUTO_TEST(two_endpoints)\n```\n","author":{"url":"https://github.com/JeremyLWright","@type":"Person","name":"JeremyLWright"},"datePublished":"2014-04-02T20:13:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/47/libhttpserver/issues/47"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f5059cfa-cb44-53e4-4358-34f77559c4bc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEDFC:8209F:4C77A:679F4:6964F360
html-safe-noncedf23a0dbaf1ce99e969f6f3930e1076473ebe276ce62356cbaaa134b366012fd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREZDOjgyMDlGOjRDNzdBOjY3OUY0OjY5NjRGMzYwIiwidmlzaXRvcl9pZCI6IjIxMDM0NTU1MTQ4MTUxNjUyODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac67a1493bc12d5f344028a360b68f2e1b9b1f3100ef594e3740d1bd48e9001ace
hovercard-subject-tagissue:30721092
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/etr/libhttpserver/47/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f2a6b801056a332ec5cfd61013f14fe0ac0b0c758873a92e03a3f2e480da96e6/etr/libhttpserver/issues/47
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f2a6b801056a332ec5cfd61013f14fe0ac0b0c758873a92e03a3f2e480da96e6/etr/libhttpserver/issues/47
og:image:altIncluded is a test case to register multiple endpoints. This test fails. Is this a bug, or a misuse of the API? If this is bug, will you please confirm this is a valid test case, and I will continu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJeremyLWright
hostnamegithub.com
expected-hostnamegithub.com
None53cd8ae9b65b7c4a0ad545ffeb3216839259a92733857ba426906c0655c5419d
turbo-cache-controlno-preview
go-importgithub.com/etr/libhttpserver git https://github.com/etr/libhttpserver.git
octolytics-dimension-user_id1201536
octolytics-dimension-user_loginetr
octolytics-dimension-repository_id3416891
octolytics-dimension-repository_nwoetr/libhttpserver
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3416891
octolytics-dimension-repository_network_root_nwoetr/libhttpserver
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec140758368c0a01881f61b83770bd75cfe81e2c4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/etr/libhttpserver/issues/47#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fetr%2Flibhttpserver%2Fissues%2F47
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fetr%2Flibhttpserver%2Fissues%2F47
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=etr%2Flibhttpserver
Reloadhttps://github.com/etr/libhttpserver/issues/47
Reloadhttps://github.com/etr/libhttpserver/issues/47
Reloadhttps://github.com/etr/libhttpserver/issues/47
etr https://github.com/etr
libhttpserverhttps://github.com/etr/libhttpserver
Notifications https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Fork 191 https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Star 942 https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Code https://github.com/etr/libhttpserver
Issues 40 https://github.com/etr/libhttpserver/issues
Pull requests 11 https://github.com/etr/libhttpserver/pulls
Actions https://github.com/etr/libhttpserver/actions
Projects 0 https://github.com/etr/libhttpserver/projects
Wiki https://github.com/etr/libhttpserver/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/etr/libhttpserver/security
Please reload this pagehttps://github.com/etr/libhttpserver/issues/47
Insights https://github.com/etr/libhttpserver/pulse
Code https://github.com/etr/libhttpserver
Issues https://github.com/etr/libhttpserver/issues
Pull requests https://github.com/etr/libhttpserver/pulls
Actions https://github.com/etr/libhttpserver/actions
Projects https://github.com/etr/libhttpserver/projects
Wiki https://github.com/etr/libhttpserver/wiki
Security https://github.com/etr/libhttpserver/security
Insights https://github.com/etr/libhttpserver/pulse
New issuehttps://github.com/login?return_to=https://github.com/etr/libhttpserver/issues/47
New issuehttps://github.com/login?return_to=https://github.com/etr/libhttpserver/issues/47
Cannot register multiple endpointshttps://github.com/etr/libhttpserver/issues/47#top
https://github.com/JeremyLWright
https://github.com/JeremyLWright
JeremyLWrighthttps://github.com/JeremyLWright
on Apr 2, 2014https://github.com/etr/libhttpserver/issues/47#issue-30721092
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.