mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
17 lines
359 B
Python
17 lines
359 B
Python
from gunicorn.config import Config
|
|
|
|
cfg = Config()
|
|
cfg.set('proxy_protocol', True)
|
|
|
|
request = {
|
|
"method": "GET",
|
|
"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"}'
|
|
}
|