paint-brush
Simple HTTP middleware with Goby@gbbr
17,938 reads
17,938 reads

Simple HTTP middleware with Go

by Gabriel Aszalos2mSeptember 11th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

It is a common requirement to encounter the necessity of having various operations needed around incoming <a href="https://hackernoon.com/tagged/http" target="_blank">HTTP</a> requests to your server. The most prevalent examples would be logging and tracing. Although there are various frameworks out there that provide this out of the box, I’d like to illustrate how simple it is to create this logic using nothing but the standard library. Building your own implementation gives you full flexibility and control over the behaviour, reducing the need for external dependencies.

Coin Mentioned

Mention Thumbnail
featured image - Simple HTTP middleware with Go
Gabriel Aszalos HackerNoon profile picture
Gabriel Aszalos

Gabriel Aszalos

@gbbr

L O A D I N G
. . . comments & more!

About Author

Gabriel Aszalos HackerNoon profile picture
Gabriel Aszalos@gbbr

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite