Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.
JamesGecko edited this page Jan 27, 2011 · 3 revisions

Welcome to the newf wiki!

GET

To do GETs with newf, try the following:

def foo(request):
    return Response(str(request.GET.get('arg', 'nothing')) + " was passed")

When visiting http://localhost:800/foo?arg=something, "something was passed" will be returned.
When visiting http://localhost:800/foo?blarg=something, "nothing was passed" will be returned.

Clone this wiki locally