Size: 454
Comment:
|
Size: 993
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
This is a small side project I actually did for work. I wrapped {{{asyncode}}} in an HTTP server and request handler. It can be used in much the same way as the {{{SimpleHTTPServer}}} though the API is different. It is still a work in progress, but is running in its current form in a production environment. It is HTTP/1.1 compliant and can be used as a RESTful server. | This is a small side project I actually did for work. I wrapped {{{asyncore}}} to be an server and request handler. It can be used in much the same way as {{{SimpleHTTPServer}}} though the API is a bit different. It is still a work in progress, but is running, in its current form, in a production environment. It is for the most part HTTP/1.1 compliant and can be used as a RESTful server. |
Line 5: | Line 5: |
'''''I will post the code in the next few days.''''' | [[attachment:AsyncoreHTTPServer.py|AsyncoreHTTPServer]] The following two files explain the tests done on the AsyncoreHTTPServer module after it was embedded into a server that is used in a production environment. I will not post the full source code for that server here as it has a very specific use and would be of no use to anybody. However, the two files below could be useful if someone wants to write test scrips for a server using AsyncoreHTTPServer. [[attachment:README.AsyncoreHTTPServer.txt|README]] [[attachment:testACHTTPServer.py|testACHTTPServer]] |
AsyncoreHTTPServer
This is a small side project I actually did for work. I wrapped asyncore to be an server and request handler. It can be used in much the same way as SimpleHTTPServer though the API is a bit different. It is still a work in progress, but is running, in its current form, in a production environment. It is for the most part HTTP/1.1 compliant and can be used as a RESTful server.
The following two files explain the tests done on the AsyncoreHTTPServer module after it was embedded into a server that is used in a production environment. I will not post the full source code for that server here as it has a very specific use and would be of no use to anybody. However, the two files below could be useful if someone wants to write test scrips for a server using AsyncoreHTTPServer.