Skip to content

Docs: request-handling pipeline #2390

@bajtos

Description

@bajtos

This is a follow-up for the spike #2318, see the discussion and PoC code for more context.

Describe request handling steps. Explain the order in which different middleware and route handlers are invoked in LB4, what extension points are provided. This content can go into a new section to Advanced topics in Sequence or we can create an entirely new page.

When #2389 is done, requests will be handled in the following steps:

  1. Request-preprocessing middleware like CORS, this is not customizable yet.
  2. Native LoopBack 4 routes (controller methods or route handlers).
  3. External Express routers (if the request was not handled yet).
  4. Static assets (if the request was not handled yet).

Related issues: #1849

Metadata

Metadata

Assignees

Labels

DocsRESTIssues related to @loopback/rest package and REST transport in general

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions