Here are the examples of the python api twisted.web.http.ACCEPTED taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
Project: hookah Source File: dispatch.py
def render(self, request):
url = base64.b64decode(request.postpath[0])
if url:
headers = {}
for header in ['content-type', 'content-length']:
value = request.getHeader(header)
if value:
headers[header] = value
dispatch_request(HookahRequest(url, headers, request.content.read()))
request.setResponseCode(http.ACCEPTED)
return "202 Scheduled"
else:
request.setResponseCode(http.BAD_REQUEST)
return "400 No destination URL"