httpthings

module
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT

README

GoDoc

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 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
Package run providies methods to easily start web servers

Jump to

Keyboard shortcuts

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