gorilla / mux

Package gorilla/mux is a powerful HTTP router and URL matcher for building Go web servers with 🦍
https://gorilla.github.io
BSD 3-Clause "New" or "Revised" License
20.93k stars 1.85k forks source link

[question] timeout settings per endpoint #684

Open benitogf opened 2 years ago

benitogf commented 2 years ago

Is there a way to set timeouts for a specific endpoint without having to change the server global timeouts?

My use case is that I have an upload endpoint that needs a higher read timeout than the rest of the server

andrewpillar commented 2 years ago

Not currently, see this thread here from the Go issue tracker: https://github.com/golang/go/issues/16100

Tang8330 commented 9 months ago

Looks like the linked issue has been merged. Is this possible with Mux now?