Skip to content

Instantly share code, notes, and snippets.

View pchampin's full-sized avatar

Pierre-Antoine Champin pchampin

View GitHub Profile
@pchampin
pchampin / httpgen.wsgi
Created September 25, 2014 12:13
HTTP response generator
#!/usr/bin/env python
"""
This simple service is aimed at web application developers. It allows them to
specify in the URL the HTTP response they want to get, in order to test the
behaviour of client codes.
The PATH_INFO is the desired status code, optionnally followed by a custom
message, e.g.:
/200

Keybase proof

I hereby claim:

  • I am pchampin on github.
  • I am pchampin (https://keybase.io/pchampin) on keybase.
  • I have a public key whose fingerprint is BCB1 45FD 5531 F653 C422 89F0 9D1E DAEE EF98 D438

To claim this, I am signing this object: