Skip to content

Inside your handler

A handler's arguments come from the client. Everything else it can read, and everything it can do while it runs, is here.

What it can read:

  • The Context is the one extra parameter any handler can ask for: the live request, its headers, its session, and the progress and change-notification verbs.
  • Dependencies are parameters the model never sees, filled in by your own functions with Resolve.
  • Lifespan covers state your server builds once at startup, and how a handler reaches it through the Context.

What it can do while it runs:

If you haven't registered a handler yet, start with Tools. Every page here assumes you have one.