@@ -287,12 +287,11 @@ def develop_command(
287287 runner (
288288 interface ,
289289 app_target ,
290- host ,
291- port ,
290+ host = host ,
291+ port = port ,
292292 loop = loop ,
293293 log_level = 'debug' ,
294294 log_access = True ,
295- threads = 1 ,
296295 threading_mode = "workers" ,
297296 ssl_certfile = ssl_certfile ,
298297 ssl_keyfile = ssl_keyfile ,
@@ -315,6 +314,9 @@ def develop_command(
315314@click .option (
316315 '--interface' , type = click .Choice (['rsgi' , 'asgi' ]), default = 'rsgi' ,
317316 help = 'Application interface.' )
317+ @click .option (
318+ '--http' , type = click .Choice (['auto' , '1' , '2' ]), default = 'auto' ,
319+ help = 'HTTP version.' )
318320@click .option (
319321 '--ws/--no-ws' , is_flag = True , default = True ,
320322 help = 'Enable websockets support.' )
@@ -342,7 +344,7 @@ def develop_command(
342344 '--ssl-keyfile' , type = str , default = None , help = 'SSL key file' )
343345@pass_script_info
344346def serve_command (
345- info , host , port , workers , threads , threading_mode , interface , ws , loop , opt ,
347+ info , host , port , workers , threads , threading_mode , interface , http , ws , loop , opt ,
346348 log_level , access_log , backlog , backpressure , ssl_certfile , ssl_keyfile
347349):
348350 app_target = info ._get_import_name ()
@@ -360,6 +362,7 @@ def serve_command(
360362 threading_mode = threading_mode ,
361363 backlog = backlog ,
362364 backpressure = backpressure ,
365+ http = http ,
363366 enable_websockets = ws ,
364367 ssl_certfile = ssl_certfile ,
365368 ssl_keyfile = ssl_keyfile ,
0 commit comments