...
This commit is contained in:
@@ -68,8 +68,8 @@ handle :: (client: s32) {
|
|||||||
buf : [4096]u8 = ---;
|
buf : [4096]u8 = ---;
|
||||||
read(client, buf, buf.len);
|
read(client, buf, buf.len);
|
||||||
|
|
||||||
body := "<html><body><h1>Hello from sx!</h1></body></html>";
|
body :: "<html><body><h1>Hello from sx!</h1></body></html>";
|
||||||
response := format("HTTP/1.1 200 OK\r
|
response :: format("HTTP/1.1 200 OK\r
|
||||||
Content-Type: text/html\r
|
Content-Type: text/html\r
|
||||||
Connection: close\r
|
Connection: close\r
|
||||||
Content-Length: {}\r
|
Content-Length: {}\r
|
||||||
|
|||||||
@@ -366,6 +366,7 @@ build_format :: (fmt: string) -> string {
|
|||||||
|
|
||||||
format :: ($fmt: string, args: ..Any) -> string {
|
format :: ($fmt: string, args: ..Any) -> string {
|
||||||
#insert build_format(fmt);
|
#insert build_format(fmt);
|
||||||
|
#insert "result;";
|
||||||
}
|
}
|
||||||
|
|
||||||
print :: ($fmt: string, args: ..Any) {
|
print :: ($fmt: string, args: ..Any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user