有没有办法根据 url 定义超时?
我正在寻找一种解决方案,用于将超时传递给我的应用程序,并在其中注入最少的代码。
那么,有没有一种方法可以根据 url 前缀将超时参数传递给连接呢?需要包含 Spring 和 weblogic 的解决方案。
I am looking for a solution for timeout passing to my application with minimum code injection in it.
So, is there a way to pass timeout parameter to a connection based on url prefix? Spring and weblogic included solutions are needed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没听说过。当然,URL、URI 和 HTTP 规范没有提供将超时作为请求的一部分包含在内的标准方法。
见上文。我从未听说过任何通用(或 Spring 或 Weblogic 特定)解决方案允许您通过 URL 执行此操作。
如果您更具体地说明您要解决的问题,将会有所帮助。
你说的是哪种超时?客户端连接超时?客户端收到响应超时?某种服务器端超时?
用例是什么?
有什么限制?
Not that I've heard of. Certainly the URL, URI and HTTP specs don't provide a standard way to include timeout as part of a request.
See above. I've never heard of any general (or Spring or Weblogic specific) solutions that allow you to do this via the URL.
It would help if you were more specific about the problem you were trying to solve.
What kind of timeout you are talking about? Client-side timeout on connect? Client-side timeout on receipt of a response? Some kind of server-side timeout?
What is the use-case?
What are the constraints?