/http-timeout

You must set timeout to net/http.Client and net/http.Server

Primary LanguageGoMIT LicenseMIT

http-timeout

http-timeout restrict http server without timeout. You must not use http server without timeout.

See The complete guide to Go net/http timeouts.

Install

# MacOS 
curl -L https://github.com/wreulicke/http-timeout/releases/download/v0.0.2/http-timeout_0.0.2_darwin_amd64 -o /usr/local/bin/http-timeout

# Linux
curl -L https://github.com/wreulicke/http-timeout/releases/download/v0.0.2/http-timeout_0.0.2_linux_amd64 -o /usr/local/bin/http-timeout

# Windows
curl -L https://github.com/wreulicke/http-timeout/releases/download/v0.0.2/http-timeout_0.0.2_windows_amd64.exe -o <path-directory>/http-timeout.exe

Usage

http-timeout ./...