<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HTTP on The Blog of Boban Acimovic</title><link>https://acim.net/tags/http/</link><description>Recent content in HTTP on The Blog of Boban Acimovic</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>The Blog of Boban Acimovic &amp;copy; 2026</copyright><lastBuildDate>Sun, 13 Nov 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://acim.net/tags/http/index.xml" rel="self" type="application/rss+xml"/><item><title>How to write complex HTTP middlewares in Go</title><link>https://acim.net/blog/complex-go-middlewares/</link><pubDate>Sun, 13 Nov 2022 00:00:00 +0000</pubDate><guid>https://acim.net/blog/complex-go-middlewares/</guid><description>&lt;p&gt;Lot of the tutorials on the Web show different ways of writing Go HTTP middlewares, but most of them use functional approach meaning using functions that get dependencies as parameters and return HTTP handler function or handler. There is nothing wrong about this, but it can be quite messy to write a complex middlewares like database based authentication and authorization or simply middlewares which have lot of dependencies. In this article I am going to explain how to use more object oriented way of writing such middlewares. Let&amp;rsquo;s start with the basic object oriented middleware example:&lt;/p&gt;</description></item><item><title>Custom Go HTTP handlers using generics</title><link>https://acim.net/blog/custom-generic-go-http-handlers/</link><pubDate>Sun, 19 Dec 2021 00:00:00 +0000</pubDate><guid>https://acim.net/blog/custom-generic-go-http-handlers/</guid><description>&lt;p&gt;Few days ago Go 1.18beta1 was released and with it the first official generics support. I was embarrassed with standard Go&amp;rsquo;s HTTP handler functions for quite a while. If you are not familiar with Go, you probably wonder why, but if you are familiar, I believe you know. For example, implementing a RESTful API using idiomatic Go requires lot of code repetition in order to JSON decode request bodies and JSON encode response bodies. This problem was possible to solve in some way but never in such elegant way like using generics.&lt;/p&gt;</description></item></channel></rss>