httpthings

module
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT

README

GoDoc Go Report Card

httpthings

httpthings is a lose collection of thing I commonly use when building web servers. This is mainly for my personal used and allows me to keep the latest way I tend to do things in a central place.

If you like these things use them by copying the snippets needed to your repo. DO NOT USE THESE THINGS AS A REGULAR LIBRARY unless you are me. Because things will change and break your things.

Thing Description
github.com/unprofession-al/httpthings/respond Easily write HTTP responses to the client
github.com/unprofession-al/httpthings/endpoint In conjunction with package openapi, endpoint allows so setup a self-documenting http server
github.com/unprofession-al/httpthings/run Start a HTTP server that runs as a real server or in a server-less fashion

To see a thing than makes use of all the things, see example.

Directories

Path Synopsis
Package endpoint is a small layer on top of github.com/gorilla/mux which allows to define HTTP endpoints containing the handler function as well as some meta data.
Package endpoint is a small layer on top of github.com/gorilla/mux which allows to define HTTP endpoints containing the handler function as well as some meta data.
Package openapi provides a "good enough" implementaion of the [OpenAPI Specification].
Package openapi provides a "good enough" implementaion of the [OpenAPI Specification].
Package respond provides functions to easily write http responses to the client
Package respond provides functions to easily write http responses to the client
Package run providies methods to easily start web servers as is or in a server-less context
Package run providies methods to easily start web servers as is or in a server-less context

Jump to

Keyboard shortcuts

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