ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## HttpServer::redirect ###接口说明 >设置最大并发连接数。 > +++ put:redirect var:socketIndex=连接索引# var:url=跳转的URL字符串# <<< success 无返回类型 +++ ###代码演示 ~~~ var test2(var httptype,var params,var socketIndex) { http.redirect(socketIndex,"http://www.baidu.com"); } var http = new HttpServer; var main(var thread,var params) { http.init(thread); http.setPort(4601); http.setMaxSocketCount(5000); http.startService(); //变量方式注册 http.handleFunc("/test2",test2); } ~~~