Skip to content

Basic functionality (a skeleton) for an HTTP server.

Notifications You must be signed in to change notification settings

cyc-ttn/skeleton

Repository files navigation

Skeleton - Basic HTTP Server setup

import "github.com/cyc-ttn/skeleton"

Skeleton wraps the provided HTTP server with a set of interfaces for applications to provide their own implementations for session management and routing.

It includes the general code necessary to:

  • handle graceful shutdown
  • allow long-standing routines to be connected to said graceful shutdown

Optionally, it also provides a way to add an application's own logging to a service. In addition to the above, the logging HTTP server will:

  • create a unique request ID for each request and store it in the header
  • create a request logger for each request
  • start the timer on the request logger.

For example, see the examples directory.

License

Skeleton is released under the MIT License.

About

Basic functionality (a skeleton) for an HTTP server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages