Skip to content

Instantly share code, notes, and snippets.

@pilgwon
Created February 4, 2014 12:18
Show Gist options
  • Save pilgwon/8802615 to your computer and use it in GitHub Desktop.
Save pilgwon/8802615 to your computer and use it in GitHub Desktop.
# 1
def __init__(self, request=None, reply=None, headers={},
cookies=None, status_code=None):
# 2
response = HTTPResponse(
headers=self._response_header,status_code=HTTPStatusCode.OK)
# 3
return reply(
[version, code.METHOD_NOT_ALLOWED,
'Method Not Allowed'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment