Skip to content

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

License

Notifications You must be signed in to change notification settings

wreulicke/http-timeout

Repository files navigation

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 ./...

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages