Documentation ¶
Overview ¶
This is an example of the most basic use of the github.com/ttd2089/stahp package.
The business logic of the application is encapsulated in an app type and the route targets are its methods.
Request parsing and response writing is handled inline where the routes are instantiated. A more realistic use of the package would include DI, generic parser builders, declarative validation, middleware, etc., but the purpose of this example is to show the core functionality of the package with no distractions.
Click to show internal directories.
Click to hide internal directories.