- Refactored FastCGIServer class to improve socket handling and added shutdown functionality. - Updated compiler functions to streamline HTML and text literal processing. - Enhanced split_kv function to support uppercase keys and added split_http_headers for better HTTP header parsing. - Introduced new session management functions to validate and handle session IDs. - Added WebSocket frame parsing and handling in the URI module. - Created systemd service scripts for easier deployment and management of the UCE FastCGI runtime. - Added new test cases for header handling, time parsing, and WebSocket functionality.
55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
|
|
|
|
RENDER()
|
|
{
|
|
DTree p;
|
|
p.set(context->params);
|
|
|
|
<>
|
|
<link rel="stylesheet" href='style.css?v=<?= time() ?>'></link>
|
|
<h1>
|
|
<a href="index.uce">UCE Test</a>:
|
|
Index
|
|
</h1>
|
|
<ul>
|
|
<li><a href="../doc/index.uce">Help Docs</a></li>
|
|
<li><a href="hello.uce">Hello</a></li>
|
|
<li><a href="post.uce">Form Post</a></li>
|
|
<li><a href="post-multipart.uce">Form Multipart Post</a></li>
|
|
<li><a href="working-dir.uce">Working Directory</a></li>
|
|
<li><a href="uri.uce">URI</a></li>
|
|
<li><a href="cookie.uce">Cookies</a></li>
|
|
<li><a href="session.uce">Session</a></li>
|
|
<li><a href="str_replace.uce">String replace</a></li>
|
|
<li><a href="dtree.uce">DTree</a></li>
|
|
<li><a href="json.uce">JSON</a></li>
|
|
<li><a href="memcached.uce">Memcached</a></li>
|
|
<li><a href="mysql.uce">MySQL Connector</a></li>
|
|
<li><a href="fileio.uce">File I/O</a></li>
|
|
<li><a href="shell.uce">Shell</a></li>
|
|
<li><a href="file_append.uce">File Append</a></li>
|
|
<li><a href="random.uce">RNG/Noise</a></li>
|
|
<li><a href="task.uce">Task</a></li>
|
|
<li><a href="task_repeat.uce">Task repeat</a></li>
|
|
<li><a href="utf8.uce">UTF-8</a></li>
|
|
<li><a href="call_file.uce">call_file()</a></li>
|
|
<li><a href="parse_time.uce">parse_time()</a></li>
|
|
<li><a href="header.uce">header</a></li>
|
|
<li><a href="websockets.ws.uce">WebSockets</a></li>
|
|
</ul>
|
|
<pre><?
|
|
print("Worker PID: ", my_pid, "\n");
|
|
print("Parent PID: ", parent_pid, " \n");
|
|
print("Output buffer size: ", context->ob->str().length(), " \n");
|
|
print("Request #", context->server->request_count, "\n");
|
|
?></pre>
|
|
<pre><?= (var_dump(p)) ?></pre>
|
|
<div><?
|
|
print("Output buffer size: ", context->ob->str().length(), " \n");
|
|
?></div>
|
|
</>
|
|
|
|
//context->flags.log_request = false;
|
|
|
|
}
|