Title: feat(server): asgi_middleware accepts Callable[[ASGIApp], ASGIApp] factories · Issue #415 · adcontextprotocol/adcp-client-python · GitHub
Open Graph Title: feat(server): asgi_middleware accepts Callable[[ASGIApp], ASGIApp] factories · Issue #415 · adcontextprotocol/adcp-client-python
X Title: feat(server): asgi_middleware accepts Callable[[ASGIApp], ASGIApp] factories · Issue #415 · adcontextprotocol/adcp-client-python
Description: Context The current asgi_middleware: Sequence[tuple[type, dict[str, Any]]] parameter is loose-typed and forces adopters to wrap functional middleware in a class just to fit the tuple shape. Accept callable factories alongside the tuple f...
Open Graph Description: Context The current asgi_middleware: Sequence[tuple[type, dict[str, Any]]] parameter is loose-typed and forces adopters to wrap functional middleware in a class just to fit the tuple shape. Accept ...
X Description: Context The current asgi_middleware: Sequence[tuple[type, dict[str, Any]]] parameter is loose-typed and forces adopters to wrap functional middleware in a class just to fit the tuple shape. Accept ...
Opengraph URL: https://github.com/adcontextprotocol/adcp-client-python/issues/415
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(server): asgi_middleware accepts Callable[[ASGIApp], ASGIApp] factories","articleBody":"## Context\n\nThe current `asgi_middleware: Sequence[tuple[type, dict[str, Any]]]` parameter is loose-typed and forces adopters to wrap functional middleware in a class just to fit the tuple shape.\n\nAccept callable factories alongside the tuple form. Branch on `isinstance(entry, tuple)` in `_apply_asgi_middleware`.\n\n## Acceptance Criteria\n\n- [ ] `asgi_middleware` accepts both `tuple[type, dict]` (current) and `Callable[[ASGIApp], ASGIApp]` factories\n- [ ] `_apply_asgi_middleware` branches on `isinstance(entry, tuple)`\n- [ ] Tests cover both shapes\n- [ ] Type signature updated to reflect the union\n\n## Files\n\n- `src/adcp/server/` (`_apply_asgi_middleware`)","author":{"url":"https://github.com/bokelley","@type":"Person","name":"bokelley"},"datePublished":"2026-05-03T02:39:17Z","url":"https://github.com/adcontextprotocol/adcp-client-python/issues/415"}
| 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:1684f1fb-1873-47fe-2434-7fe78c9bd4b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6C4:1D8AA1:E7E339:1328DBC:6B00FB84 |
| html-safe-nonce | 9b65af6eeebcb906e43320d98fb1e983caf151d3c2ce5c3d0a72e252162fbbec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkM0OjFEOEFBMTpFN0UzMzk6MTMyOERCQzo2QjAwRkI4NCIsInZpc2l0b3JfaWQiOiIyNzgxNjkxODM5NDE2MTcxMzk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 46c61ea327174c626ff025adb5a3058e32608feb78905c015f4151878a31a13c |
| hovercard-subject-tag | issue:4370674078 |
| 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/adcontextprotocol/adcp-client-python/415/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ff4a75d0ae1a5ed9ac69c7e9f0194d07d5a18dcc04ab6584990820903808384/adcontextprotocol/adcp-client-python/issues/415 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ff4a75d0ae1a5ed9ac69c7e9f0194d07d5a18dcc04ab6584990820903808384/adcontextprotocol/adcp-client-python/issues/415 |
| og:image:alt | Context The current asgi_middleware: Sequence[tuple[type, dict[str, Any]]] parameter is loose-typed and forces adopters to wrap functional middleware in a class just to fit the tuple shape. Accept ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bokelley |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/adcontextprotocol/adcp-client-python git https://github.com/adcontextprotocol/adcp-client-python.git |
| octolytics-dimension-user_id | 221690821 |
| octolytics-dimension-user_login | adcontextprotocol |
| octolytics-dimension-repository_id | 1090305973 |
| octolytics-dimension-repository_nwo | adcontextprotocol/adcp-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1090305973 |
| octolytics-dimension-repository_network_root_nwo | adcontextprotocol/adcp-client-python |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width