Repository navigation
refactor(protocols): order application protocol members - #2491
Conversation
Move public members ahead of dunders and read helpers ahead of make helpers in Application, HTTP v1/v2, OSPF, SSL and the HTTP v2 Settings data model. Pure reorder: no bodies, names or behaviour changed. Refs #2490
|
Coverage: 94.50% (unit tier, Python 3.15,
Per-file detail: the |
|
NEEDS CHANGES (Sonnet,
|
|
HTTP's _check_raw is a private method, it still belongs to the Utilities section. Is this not covered by the convention? Let's fix the doc as well then. |
|
Ruling reconciled: your point is that |
- httpv1: move _check_raw out of Methods into Utilities, before _read_field_line, since make() calls it. - httpv1: read _read_http_body before _split_field_lines, the order read() first uses them. - httpv1: keep _read_start_line and _make_start_line together, reader first. - httpv2: move _make_http_length, called directly by make(), ahead of the frame readers in Utilities. Pure reorder: no bodies, names or behaviour changed. Refs #2490
|
Pushed. The HTTP helpers now sit in Utilities: |
|
GOOD TO GO (Sonnet, |
Please follow the guide below
You will be asked some questions, please read them carefully and answer honestly
Put an
xinto all the boxes [ ] relevant to your pull request (like that [x])Use Preview tab to see how your pull request will actually look like
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeAdded a changelog entry under
docs/source/changelog/and regeneratedCHANGELOG.md, if the change is user-visibleWhat is the purpose of your pull request?
Tick the commit type your subject line carries.
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseconst— regenerates constant or registry tables, members keeping their numeric valuesDescription of your pull request and other information
Member-order reorder for the application protocol group:
Application, HTTP v1 and v2, OSPF, SSL, and the HTTP v2Settingsdata model. Public members now sit ahead of dunders,_make_dataleads the utilities, and each_read_*precedes the_make_*helpers. Moves only, plus one section banner added toApplication; no body, name or behaviour changed.Checked:
examples/generators/make_samples.pyruns against this tree;coverage run -m pytest tests/protocols/application/gives 340 passed;isort --check -l100 -p pcapkitis clean on the changed files. The full suite and pylint/mypy were not run.Refs #2490