Commit 0d59a6e
refactor(dr-014): slim webserver_impl to a composition root
With all seven behavior services extracted, remove the now-dead
webserver_impl forwarders. The MHD-adapter trampolines that stayed
(connection_notify / policy_callback / request_completed) now call
impl_->hooks_dispatch_ directly instead of the fire_* forwarders.
Removed:
- hook_phase_dispatch.cpp (11 fire_* forwarders), webserver_hook_firing.cpp
(4 gated fire_*_gated forwarders), webserver_response_queue.cpp
(materialize_and_queue_response forwarder) — deleted entirely.
- The 404/405/500 forwarders from webserver_error_pages.cpp (which now
holds only the log_dispatch_error forwarder, still used by the v1 alias
hooks) and all the corresponding declarations from the fragment header.
webserver_impl now holds only: the 5 state collaborators, the 7 behavior
services, the parent back-pointer + digest_opaque_ + SNI cache, the thin
lookup_v2 / has_hooks_for / phase_hook_count / invalidate_route_cache
forwarders (test + trampoline seams), and the static MHD trampolines. No
request-processing logic remains on it.
113/113 tests pass; cpplint/complexity/file-size gates green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 00eaf55 commit 0d59a6e
8 files changed
Lines changed: 28 additions & 457 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 40 | | |
63 | 41 | | |
64 | 42 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments