You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we need to call ctx.TimeoutError() if we wish to return from the request, which in turn sets the status code to StatusRequestTimeout.
Should there be another function: func (*RequestCtx) TimeoutErrorWithCode(statusCode int, msg string)
which lets the user override the status code and message?
The text was updated successfully, but these errors were encountered:
@Taik , fasthttp now has more generic TimeoutErrorWithResponse function. With this function you can set arbitrary status code, headers and body as 'timeout error' message.
Currently, we need to call
ctx.TimeoutError()
if we wish to return from the request, which in turn sets the status code to StatusRequestTimeout.Should there be another function:
func (*RequestCtx) TimeoutErrorWithCode(statusCode int, msg string)
which lets the user override the status code and message?
The text was updated successfully, but these errors were encountered: