Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

veffhz/uwsgi_framework

Open more actions menu

Repository files navigation

WSGI app implementation

def application(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/plain')])
    return [b'Hello world from a simple WSGI application!']

Challenge 3

Write custom wsgi implementation.

Get helloWorld-function as base. Add request parsing, routing, throwing request to view, generate answer, return answer.

Usage:

Put your code in views.py file and decorate function request method with url parameter. Function takes Request object and return raw html content, or content and status, or content, status and custom headers.

uwsgi --http :9090 --wsgi-file wsgi.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.