2012-10-24 22:07:35 +02:00

12 lines
275 B
Python

request = {
"method": "PUT",
"uri": uri("/stuff/here?foo=bar"),
"version": (1, 0),
"headers": [
("SERVER", "http://127.0.0.1:5984"),
("CONTENT-TYPE", "application/json"),
("CONTENT-LENGTH", "14")
],
"body": b'{"nom": "nom"}'
}