mirror of https://github.com/adamdruppe/arsd.git
lol junk
This commit is contained in:
parent
10bfe54b29
commit
933aa566d3
10
cgi.d
10
cgi.d
|
@ -741,7 +741,6 @@ class Cgi {
|
||||||
immutable(ubyte)[] data;
|
immutable(ubyte)[] data;
|
||||||
|
|
||||||
void rdo(const(ubyte)[] d) {
|
void rdo(const(ubyte)[] d) {
|
||||||
assert(d.length < 120);
|
|
||||||
sendAll(ir.source, d);
|
sendAll(ir.source, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1742,15 +1741,6 @@ mixin template CustomCgiMain(CustomCgi, alias fun, T...) if(is(CustomCgi : Cgi))
|
||||||
connection.close();
|
connection.close();
|
||||||
}
|
}
|
||||||
bool closeConnection;
|
bool closeConnection;
|
||||||
/*
|
|
||||||
auto sn = connection;
|
|
||||||
ubyte[1024] b;
|
|
||||||
sn.receive(b);
|
|
||||||
sendAll(sn, "HTTP/1.0 200 OK\r\n");
|
|
||||||
sendAll(sn, "Content-Length:11\r\n\r\nHello world");
|
|
||||||
sn.close();
|
|
||||||
continue;
|
|
||||||
*/
|
|
||||||
auto ir = new BufferedInputRange(connection);
|
auto ir = new BufferedInputRange(connection);
|
||||||
|
|
||||||
while(!ir.empty) {
|
while(!ir.empty) {
|
||||||
|
|
Loading…
Reference in New Issue