Replies: 2 comments
-
import Http from "http";
import Https from "https";
import {Inject} from "@tsed/di";
@Configuration({})
class Server {
@Inject(Http.Server)
protected httpServer: Http.Server | null;
@Inject(Https.Server)
protected httpsServer: Https.Server | null;
$onInit() {
if (this.httpServer) {
this.httpServer.timeout = 3000
}
if (this.httpsServer) {
this.httpsServer.timeout = 3000
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sota-k
-
@Romakita |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using tsed version 6.126.1.
How do I set the Request Timeout seconds globally using tsed?
I have read documents of configurations, but I cannnot find the parameter.
https://v6.tsed.io/docs/configuration.html#options
I found that pure Express sets like this.
Beta Was this translation helpful? Give feedback.
All reactions