octolab / protocol

📡 Toolkit for service communication protocols. 🛰

Home Page:https://go.octolab.org/toolkit/protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

middleware which wraps http.TimeoutHandler

kamilsk opened this issue · comments

func(handler http.Handler) http.Handler {
		return http.TimeoutHandler(handler, 3*time.Second, "Timeout Error")
	}