tappin logo - word 'tappin' with a period surrounded by black border
  1. Introduction
    1. Welcome
    2. Basics
    3. Factory
    4. Philosophy
  2. Reflection
    1. Overview
    2. Dynamic loading
  3. HTTP
    1. Overview
    2. Server
    3. Middlewares

Middlewares

Request ID middleware

Tappin includes middleware which adds request ID to every request it receives.

It uses crypto.randomUUID() for getting request ID.

Example

export const someController = createModule((dsl) =>
  dsl
    .apply(controller("", ridMiddleware)) // imported from http package
);