Documentation Index
Fetch the complete documentation index at: https://docs.neuro-tech.io/llms.txt
Use this file to discover all available pages before exploring further.
Advanced Patterns
Take full control with raw requests, manual endpoints, and parameter-name codecs.When the high-level API is not enough
Most controller methods should stay in the normal attribute-based model. Reach for the advanced tools when you need:- Manual control over how the request body is read
- Manual control over the exact response shape
- Low-level endpoint registration without controllers
- A custom JSON naming convention
Raw requests
[RawRequest] disables automatic binding and response serialization for a controller method. When you use it:
- The method must return
Task - The method must take exactly two parameters
- The second parameter must be
HttpResponse - For
GETandDELETE, the first parameter must beExtendedHttpRequest - For
POST,PUT, andPATCH, the first parameter must beHttpBodyRequest
Manual endpoint registration
The router also supports a low-level style without controllers:Parameter-name codecs
The router usesIParameterNameCodec to map CLR member names to JSON field names. Built-in codecs:
CamelCaseParameterNameCodecSnakeCaseParameterNameCodecTransparentParameterNameCodec
A simple rule of thumb
Stay with normal attributed methods until you have a concrete reason not to. Use raw requests when:- The body shape is unusual
- You need direct access to parser output
- You want full control over the response lifecycle
- Controllers would add ceremony without helping
- Routes are generated or highly dynamic
- You want to build a focused low-level module