8 lines
153 B
Go
8 lines
153 B
Go
package http
|
|
|
|
import "net/http"
|
|
|
|
func withCommon(next http.Handler) http.Handler {
|
|
return http.TimeoutHandler(next, 60_000_000_000, "timeout") // 60s
|
|
}
|