1-simple

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 5 Imported by: 0

README

Basic sandwich usage

This example demonstrates most of the basic features of sandwich, including:

  • Providing user types to the middleware chain
  • Adding middleware handlers to the stack.
  • Writing handlers that provide request-scoped values.
  • Writing handlers using injected values.
  • Using the default sandwich logging system.
  • Using the default sandwich error system.

Documentation

Overview

1-simple is a demo webserver for the sandwich middleware package demonstrating basic usage.

This example demonstrates most of the basic features of sandwich, including:

* Providing user types to the middleware chain * Adding middleware handlers to the stack. * Writing handlers that provide request-scoped values. * Writing handlers using injected values. * Using the default sandwich logging system. * Using the default sandwich error system.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL