Esempio n. 1
0
 def request_callback(request, uri, headers):
     headers.update({'a': 'b'})
     return [
         418, headers,
         "The {0} response from {1}".format(decode_utf8(request.method),
                                            uri)
     ]
Esempio n. 2
0
 def request_callback(request, uri, headers):
     return [
         200, headers,
         "The {} response from {}".format(decode_utf8(request.method), uri)
     ]
Esempio n. 3
0
 def _request_callback(request, uri, headers):
     return [200, headers, "The {} response from {}".format(decode_utf8(request.method), uri)]
Esempio n. 4
0
 def request_callback(request, uri, headers):
     headers.update({'a': 'b'})
     return [418, headers, "The {} response from {}".format(decode_utf8(request.method), uri)]