Skip to content

docs: code-verified fixes across remaining docs + fill protocol/{http,new}.md#176

Merged
chen3feng merged 2 commits into
masterfrom
docs-verify-followup
Jun 5, 2026
Merged

docs: code-verified fixes across remaining docs + fill protocol/{http,new}.md#176
chen3feng merged 2 commits into
masterfrom
docs-verify-followup

Conversation

@chen3feng

Copy link
Copy Markdown
Collaborator

Summary

Surgical, code-verified fixes to flare docs not touched by #174 / #175, plus the two long-empty protocol stubs.

Verified against current source

File Fix
fiber.md, logging.md flare::Asyncflare::fiber::Async (no top-level alias)
io.md malformed link io/../../io/detail/watchdog.h../io/detail/watchdog.h
intro-http.md (×5) HttpResponse::Status_OKHttpStatus::OK (enum lives in net/http/types.h)
rpc-form.md typo MssageMessage
testing.md stale namespace comment flare::testing::detailexample
option.md SomeParerSomeParser, XxxOption>...>XxxOption<...>, StringToJsonParserJsonParser (real name in base/option/json_parser.h)
coding-comparison.md read.Read()reader.Read() (variable name mismatch in snippet)
protocol/protocol-buffers.md EnableCompressionSetCompressionAlgorithm (server controller has only the latter); flare.max_queueing_delayflare.max_queueing_delay_ms; flag accept_request_raw_bytes as TODO (still commented out in rpc_options.proto:60 and std_protocol.cc:198)
protocol.md typo 内置协义内置协议
README.md added orphans buffer.md / coding-comparison.md / gdb-plugin.md to the index

Filled previously-empty stubs

Both files were 0 bytes despite being linked from protocol.md.

  • protocol/http.md: pointers to Http11Protocol / HttpService / HttpRequest|Response / HttpStatus; delegates user-facing usage to intro-http.md.
  • protocol/new.md: step-by-step guide for adding a new protocol — StreamProtocol / Message / Controller / StreamService surfaces, FLARE_RPC_REGISTER_*_STREAM_PROTOCOL* registration macros, and a reference table of existing implementations (StdProtocol, Http11Protocol, HbaseClient/ServerProtocol, RedisProtocol).

Test plan

  • docs-only — no code touched
  • markdown-link-check CI
  • all referenced header paths verified to exist via grep
  • all method/class names verified to exist with the exact spelling

🤖 Generated with Claude Code

chen3feng and others added 2 commits June 5, 2026 13:36
…l/{http,new}.md

Surgical fixes verified against current source:
- fiber.md, logging.md: flare::Async → flare::fiber::Async (no such alias at top level)
- io.md: malformed link io/../../io/detail/watchdog.h → ../io/detail/watchdog.h
- intro-http.md: HttpResponse::Status_OK → HttpStatus::OK (enum lives in net/http/types.h)
- rpc-form.md: typo Mssage → Message
- testing.md: stale namespace comment flare::testing::detail → example
- option.md: SomeParer → SomeParser, XxxOption>...> → XxxOption<...>,
  StringToJsonParser → JsonParser (real name in base/option/json_parser.h)
- coding-comparison.md: read.Read() → reader.Read() (variable mismatch)
- protocol/protocol-buffers.md: EnableCompression → SetCompressionAlgorithm
  (server controller has only the latter); max_queueing_delay →
  max_queueing_delay_ms; flag accept_request_raw_bytes as TODO (still
  commented out in rpc_options.proto:60 and std_protocol.cc:198)
- protocol.md: typo 内置协义 → 内置协议
- README.md: index orphans buffer.md / coding-comparison.md / gdb-plugin.md
  added so they show up in the docs ToC

Filled previously-empty stubs:
- protocol/http.md: describes HTTP-as-wire-protocol entry points
  (Http11Protocol, HttpService, HttpRequest/Response, HttpStatus) and
  delegates user-facing usage to intro-http.md
- protocol/new.md: step-by-step guide for adding a new protocol —
  StreamProtocol / Message / Controller / StreamService surfaces,
  FLARE_RPC_REGISTER_*_STREAM_PROTOCOL* registration macros, and a
  reference table of existing implementations (StdProtocol, Http11Protocol,
  HbaseClient/ServerProtocol, RedisProtocol)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- logging.md: CnTransGroup/EffectiveModernCppChinese was deleted upstream
  (HTTP 404 on the repo itself). Drop the dead URL but keep the textual
  reference to "Effective Modern C++" Item 30.
- protocol/protocol-buffers.md:249: relative path was missing the
  "protocol/" segment — ../../rpc/protobuf/rpc_meta.proto →
  ../../rpc/protocol/protobuf/rpc_meta.proto (matches the three other
  correct refs in the same file).

Both links pre-existed; the modified-files-only link checker only
surfaced them because this PR touched those two files.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@chen3feng chen3feng merged commit 4c1e391 into master Jun 5, 2026
2 checks passed
@chen3feng chen3feng deleted the docs-verify-followup branch June 5, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant