Reference
The Reference section is the ground truth of Plumego.
If:
- Core defines the framework’s promises
- Concepts explain how it works
- Architecture shows how to structure systems
- Guides show how to solve problems
- Patterns define long-term discipline
- Advanced explores scale and evolution
Then Reference answers only one question:
“What exactly is available, and what does it do?”
Nothing more. Nothing less.
What This Section Is For
Reference documentation exists to:
- Describe public APIs precisely
- Define behavioral guarantees
- Clarify edge cases
- Remove ambiguity
- Serve as a stable contract
This is the section you consult when:
- You need exact behavior
- You are implementing tooling
- You are reviewing framework usage
- You are debugging unexpected results
- You want to know whether something is supported
What This Section Is Not
Reference is not:
- A tutorial
- A design guide
- An opinion piece
- A collection of examples
- A best-practices document
If you are looking for how to use something well,
you are probably in the wrong section.
Stability and Compatibility
Everything documented here is:
- Public
- Supported
- Intended for long-term use
Anything not documented here should be treated as:
- Internal
- Unstable
- Subject to change without notice
If you depend on undocumented behavior,
you own the risk.
Reference vs Source Code
The Reference is stronger than the source code.
Why:
- Source code changes
- Reference defines intent
- Bugs may exist, but contracts remain
If implementation diverges from Reference,
the implementation is wrong.
Structure of the Reference
The Reference is organized by core abstractions.
You will find precise documentation for:
- App — application lifecycle and registration
- Context — request-scoped API
- Router — route registration and matching
- Middleware — execution semantics
- Handler — function contracts
- Response Helpers — response-writing utilities
- Errors — framework-level error behavior
Each page is intentionally narrow and factual.
Reading the Reference
You should read Reference pages:
- Selectively
- With a concrete question in mind
- Alongside the source code if needed
Do not read the Reference end-to-end like a book.
Use it as a lookup table.
Reference and Versioning
The Reference documents behavior for the current major version of Plumego.
Breaking changes must:
- Be reflected here
- Be versioned
- Be documented explicitly
If behavior changes without reference updates,
it is considered a bug.
Design Philosophy Behind the Reference
Plumego’s Reference follows three strict rules:
Precision over completeness
If behavior is ambiguous, it is clarified.Clarity over convenience
No “it usually works like this”.Explicit absence is documented
What Plumego does not provide is as important as what it does.
How This Section Evolves
As Plumego evolves:
- New APIs appear here
- Deprecated APIs are marked clearly
- Removed APIs are documented in changelogs
The Reference grows slowly and deliberately.
Summary
The Reference section defines Plumego’s public surface area.
- If it is here, you can rely on it
- If it is not here, do not assume it exists
- If something behaves differently, it is a bug
This section is the final authority on Plumego behavior.
Next
From here, continue with:
→ App — the Plumego application entry point
→ Context — request-scoped APIs
→ Router — route registration and matching
→ Middleware — execution contracts
Each page documents a single abstraction, precisely.