mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 12:23:03 +00:00
first commit ZZZzzzzzz
This commit is contained in:
15
webroot/err/404.html
Normal file
15
webroot/err/404.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>404 not fount</title>
|
||||
</head>
|
||||
<body>
|
||||
<div style="width: 100%;text-align: center">
|
||||
<h1>
|
||||
server error - 404 not fount
|
||||
</h1>
|
||||
<p> -- vert.x反向代理服务器(version 4.1.2)</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
52
webroot/test/sockTest.html
Normal file
52
webroot/test/sockTest.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ZH-cn">
|
||||
<script src="sockjs-min.js"></script>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>测试021</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<label>
|
||||
<input id="input0"/>
|
||||
<input type="button" value="发送" onclick="send()">
|
||||
</label>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
|
||||
var sock = new SockJS('http://127.0.0.1:8086/real/serverApi/test');
|
||||
|
||||
// 测试websocket直接http反向代理
|
||||
// var sock = new SockJS('http://'+location.host+'/real/serverApi/test'); // 这会导致sockjs降级处理 (使用普通post轮询 模拟websocket)
|
||||
|
||||
|
||||
sock.onopen = function () {
|
||||
console.log('open');
|
||||
};
|
||||
|
||||
function send() {
|
||||
|
||||
var v = document.getElementById("input0");
|
||||
console.log('client:', v.value)
|
||||
sock.send(v.value)
|
||||
}
|
||||
|
||||
sock.onmessage = function (e) {
|
||||
console.log('message', e.data);
|
||||
};
|
||||
|
||||
sock.onevent = function (event, message) {
|
||||
console.log('event: %o, message:%o', event, message);
|
||||
return true; // 为了标记消息已被处理了
|
||||
};
|
||||
|
||||
sock.onunhandled = function (json) {
|
||||
console.log('this message has no address:', json);
|
||||
};
|
||||
|
||||
sock.onclose = function () {
|
||||
console.log('close');
|
||||
};
|
||||
</script>
|
||||
</html>
|
||||
27
webroot/test/sockjs-min.js
vendored
Normal file
27
webroot/test/sockjs-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
15
webroot/test2/index.html
Normal file
15
webroot/test2/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>TEST2</title>
|
||||
</head>
|
||||
<body>
|
||||
<div style="width: 100%;text-align: center">
|
||||
<h1>
|
||||
OOOOOOOOOOOOOOOOOK
|
||||
</h1>
|
||||
<p><i> ---来自宇宙无敌的vert.x反向代理服务器(version 4.1.2)</i></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user