-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
基于cli运行且作为单例的情况下,server增加可更换request的方法 #2880
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
要不把构造函数里的 |
好 |
我还有一个想法,把所有这些 Server 里的 |
我也是这么想的,既然你说了,那就可以改了😁 |
|
|
那构造函数的入参,以及 |
不改,你可以构造的时候就传入 request, 或者后续实例化以后再 setRequest, 但是不传就会触发默认值嘛 |
构造函数里得改写一下:
|
好 |
多谢🙏 |
基于cli运行且作为单例的情况下,server增加可更换request的方法