written in Java that runs on JVM. The name of cafebabepy comes from cafebabe which is the magic number of the Java class file. I've been developing cafebabepy for 1 year and 6 months. I am still developing cafebabepy. cafebabepy does not work perfectly as Python 3...
server that Web application can use was different. Because it was implemented in various ways such as mod_python and CGI. Therefore, WSGI was created. WSGI solved the problem in Python by defining standard specifications for connecting Web application and Web server.
for Python 2. However, there was a problem due to Python 3 specification change. It's because Python 3 changed the handling of string and binary. In WSGI, HTTP response body is binary.
3. In Python 3, the Unicode string is 'str' and the binary is 'bytes'. String and binary are separated in Python 3. Therefore, PEP 3333 defined the response body as 'bytes'.
not handle 'wsgiref' module. Therefore, cafebabepy on the Java Servlet and realizes the WSGI specification. Java Servlet is a specification that runs Web applications in Java.
GET, POST etc. request from client. 3. doGet, doPost, doHead, doTrace, doPut, doDelete and doOptions method is executed. 4. Run the WSGI application endpoint with cafebabepy. 5. Make the result of executing the WSGI application a response.
Call start_response from the WSGI application. 2. WSGIServlet holds arguments of start_response called from the WSGI application. WSGIServlet then passes it to the servlet's response. To satisfy these two In WSGI on cafebabepy, start_response is Python code.
the specification of WSGI. I explained how to realize WSGI with cafebabepy. I will be glad if you understand the outline of the specification of WSGI by my explanation. I'm happy if you understand how to implement WSGI on cafebabepy. This is all for my session.