|
Revision 34, 479 bytes
(checked in by xammy, 3 years ago)
|
Fixed some bugs due to changes in Tango API
|
| Line | |
|---|
| 1 |
import fcgi.Request; |
|---|
| 2 |
//import fcgi.Connection; |
|---|
| 3 |
|
|---|
| 4 |
int main (char[][] args) |
|---|
| 5 |
{ |
|---|
| 6 |
// FastCGIConnection connection = new FastCGIConnection (); |
|---|
| 7 |
// FastCGIRequest request = new FastCGIRequest (connection); |
|---|
| 8 |
FastCGIRequest request = new FastCGIRequest (); |
|---|
| 9 |
|
|---|
| 10 |
while ( request.accept () ) |
|---|
| 11 |
{ |
|---|
| 12 |
request.stdout.write("Content-type: text/html\r\n\r\n"); |
|---|
| 13 |
request.stdout.write("Hello world!\n"); |
|---|
| 14 |
|
|---|
| 15 |
request.exitStatus = 0; |
|---|
| 16 |
} |
|---|
| 17 |
|
|---|
| 18 |
return request.exitStatus; |
|---|
| 19 |
} |
|---|