Commit c20b661
committed
Trim doc comments to match the rest of httplib.h
The new code carried inline doc comments (15-line set_no_proxy block,
18-line set_proxy_from_env block, plus narrating comments inside parser
bodies, plus section dividers in the test file) that were heavy
compared to the rest of the codebase — neighboring setters like
set_proxy / set_proxy_basic_auth carry no doc at all, the test file
does not use sub-section dividers, and the README / cookbook already
document the behavior in detail.
Removed:
- Public-API doc blocks on set_no_proxy and set_proxy_from_env.
- Narrating comments inside parse_no_proxy_entry, normalize_target,
apply_proxy_url, host_matches_no_proxy that were just describing
the obvious code structure.
- Multi-line BORDER-rationale meta comments.
- In-test sub-section dividers ("// ---- Hostname suffix matching",
etc.) and per-class doc comments on the test fixtures.
- Test-side comments that paraphrased their own test name.
- Redundant ordering comments inside setup_redirect_client.
Kept:
- Security WHY comments (CRLF rejection, dot-boundary suffix matching,
httpoxy / CVE-2016-5385, GHSA-6hrp-7fq9-3qv2 analog, CVE-2026-21428).
- Regression-target WHY comments (UB shift on prefix=0).
- Non-obvious external knowledge (detail::split already trims).
635 unit tests still pass under both the regular and split builds.1 parent 97b357f commit c20b661
2 files changed
Lines changed: 0 additions & 61 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2014 | 2014 | | |
2015 | 2015 | | |
2016 | 2016 | | |
2017 | | - | |
2018 | | - | |
2019 | 2017 | | |
2020 | 2018 | | |
2021 | 2019 | | |
| |||
2283 | 2281 | | |
2284 | 2282 | | |
2285 | 2283 | | |
2286 | | - | |
2287 | | - | |
2288 | | - | |
2289 | | - | |
2290 | | - | |
2291 | 2284 | | |
2292 | 2285 | | |
2293 | 2286 | | |
| |||
2379 | 2372 | | |
2380 | 2373 | | |
2381 | 2374 | | |
2382 | | - | |
2383 | 2375 | | |
2384 | 2376 | | |
2385 | 2377 | | |
| |||
10542 | 10534 | | |
10543 | 10535 | | |
10544 | 10536 | | |
10545 | | - | |
10546 | 10537 | | |
10547 | 10538 | | |
10548 | 10539 | | |
| |||
10664 | 10655 | | |
10665 | 10656 | | |
10666 | 10657 | | |
10667 | | - | |
10668 | 10658 | | |
10669 | 10659 | | |
10670 | 10660 | | |
| |||
13388 | 13378 | | |
13389 | 13379 | | |
13390 | 13380 | | |
13391 | | - | |
13392 | 13381 | | |
13393 | 13382 | | |
13394 | 13383 | | |
| |||
14985 | 14974 | | |
14986 | 14975 | | |
14987 | 14976 | | |
14988 | | - | |
14989 | 14977 | | |
14990 | 14978 | | |
14991 | 14979 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18158 | 18158 | | |
18159 | 18159 | | |
18160 | 18160 | | |
18161 | | - | |
18162 | | - | |
18163 | | - | |
18164 | | - | |
18165 | 18161 | | |
18166 | 18162 | | |
18167 | 18163 | | |
18168 | | - | |
18169 | 18164 | | |
18170 | 18165 | | |
18171 | 18166 | | |
| |||
18193 | 18188 | | |
18194 | 18189 | | |
18195 | 18190 | | |
18196 | | - | |
18197 | | - | |
18198 | | - | |
18199 | 18191 | | |
18200 | 18192 | | |
18201 | 18193 | | |
| |||
18251 | 18243 | | |
18252 | 18244 | | |
18253 | 18245 | | |
18254 | | - | |
18255 | | - | |
18256 | 18246 | | |
18257 | 18247 | | |
18258 | 18248 | | |
| |||
18266 | 18256 | | |
18267 | 18257 | | |
18268 | 18258 | | |
18269 | | - | |
18270 | | - | |
18271 | | - | |
18272 | 18259 | | |
18273 | 18260 | | |
18274 | 18261 | | |
| |||
18350 | 18337 | | |
18351 | 18338 | | |
18352 | 18339 | | |
18353 | | - | |
18354 | | - | |
18355 | | - | |
18356 | 18340 | | |
18357 | 18341 | | |
18358 | 18342 | | |
| |||
18364 | 18348 | | |
18365 | 18349 | | |
18366 | 18350 | | |
18367 | | - | |
18368 | | - | |
18369 | | - | |
18370 | 18351 | | |
18371 | 18352 | | |
18372 | 18353 | | |
| |||
18380 | 18361 | | |
18381 | 18362 | | |
18382 | 18363 | | |
18383 | | - | |
18384 | | - | |
18385 | | - | |
18386 | 18364 | | |
18387 | 18365 | | |
18388 | 18366 | | |
| |||
18411 | 18389 | | |
18412 | 18390 | | |
18413 | 18391 | | |
18414 | | - | |
18415 | | - | |
18416 | | - | |
18417 | 18392 | | |
18418 | 18393 | | |
18419 | 18394 | | |
| |||
18453 | 18428 | | |
18454 | 18429 | | |
18455 | 18430 | | |
18456 | | - | |
18457 | 18431 | | |
18458 | 18432 | | |
18459 | 18433 | | |
| |||
18466 | 18440 | | |
18467 | 18441 | | |
18468 | 18442 | | |
18469 | | - | |
18470 | | - | |
18471 | 18443 | | |
18472 | 18444 | | |
18473 | 18445 | | |
| |||
18479 | 18451 | | |
18480 | 18452 | | |
18481 | 18453 | | |
18482 | | - | |
18483 | | - | |
18484 | | - | |
18485 | 18454 | | |
18486 | 18455 | | |
18487 | 18456 | | |
| |||
18508 | 18477 | | |
18509 | 18478 | | |
18510 | 18479 | | |
18511 | | - | |
18512 | | - | |
18513 | | - | |
18514 | 18480 | | |
18515 | 18481 | | |
18516 | 18482 | | |
| |||
18521 | 18487 | | |
18522 | 18488 | | |
18523 | 18489 | | |
18524 | | - | |
18525 | | - | |
18526 | | - | |
18527 | 18490 | | |
18528 | 18491 | | |
18529 | 18492 | | |
| |||
18546 | 18509 | | |
18547 | 18510 | | |
18548 | 18511 | | |
18549 | | - | |
18550 | | - | |
18551 | | - | |
18552 | 18512 | | |
18553 | 18513 | | |
18554 | 18514 | | |
| |||
18563 | 18523 | | |
18564 | 18524 | | |
18565 | 18525 | | |
18566 | | - | |
18567 | | - | |
18568 | 18526 | | |
18569 | 18527 | | |
18570 | 18528 | | |
| |||
18597 | 18555 | | |
18598 | 18556 | | |
18599 | 18557 | | |
18600 | | - | |
18601 | | - | |
18602 | | - | |
18603 | 18558 | | |
18604 | 18559 | | |
18605 | 18560 | | |
| |||
18618 | 18573 | | |
18619 | 18574 | | |
18620 | 18575 | | |
18621 | | - | |
18622 | | - | |
18623 | | - | |
18624 | | - | |
18625 | 18576 | | |
18626 | 18577 | | |
18627 | 18578 | | |
| |||
0 commit comments