mux icon indicating copy to clipboard operation
mux copied to clipboard

[question] timeout settings per endpoint

Open benitogf opened this issue 2 years ago • 2 comments

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

benitogf avatar Jul 07 '22 11:07 benitogf

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

andrewpillar avatar Jul 07 '22 12:07 andrewpillar

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

Tang8330 avatar Feb 19 '24 21:02 Tang8330