
    2Bh                    	   S SK r S SKrS SKrS SKrS SKrS SKrS SKrS SKrS SKrS SK	r	S SK
r
S SKrS SKJrJr  S SKJr  S SKJr  / r\
R(                  rSS jrS r " S S5      r " S	 S
\5      r " S S5      r\" S\40 5      rS rS rS rS rS r S r!S r"S r#S r$S r%S r&S r'S r(S r)S r*S r+S r,S r-S r. " S  S!\5      r/ " S" S#\5      r0 " S$ S%\5      r1 " S& S'\5      r2 " S( S)\5      r3 " S* S+\5      r4 " S, S-\5      r5 " S. S/\5      r6 " S0 S1\5      r7 " S2 S3\5      r8 " S4 S5\5      r9 " S6 S7\5      r: " S8 S9\5      r; " S: S;\5      r< " S< S=\5      r= " S> S?\5      r> " S@ SA\5      r? " SB SC\5      r@ " SD SE\5      rA " SF SG\5      rB " SH SI\5      rC " SJ SK\5      rD " SL SM\5      rE " SN SO\5      rF " SP SQ\5      rG " SR SS\5      rH " ST SU\5      rI " SV SW\5      rJ " SX SY\5      rK " SZ S[\5      rL " S\ S]\5      rM " S^ S_\5      rN " S` Sa\5      rO " Sb Sc\5      rP " Sd Se\5      rQ " Sf Sg\5      rR " Sh Si\5      rS " Sj Sk\5      rT " Sl Sm\5      rU " Sn So\5      rV " Sp Sq\5      rW " Sr Ss\5      rX " St Su\5      rY " Sv Sw\5      rZ " Sx Sy\5      r[ " Sz S{\5      r\ " S| S}\5      r] " S~ S\5      r^ " S S\5      r_ " S S\5      r` " S S\5      ra " S S\5      rb " S S\5      rc " S S\5      rd " S S\5      re " S S\5      rf " S S\5      rg " S S\5      rh " S S\5      ri " S S\5      rj " S S\5      rk " S S\5      rl " S S\5      rm " S S\5      rn " S S\5      ro " S S\5      rp " S S\5      rq " S S\5      rr " S S\5      rs " S S\5      rt " S S\5      ru " S S\5      rv " S S\5      rw " S S\5      rx " S S\5      ry " S S\5      rz " S S\5      r{ " S S\5      r| " S S\5      r} " S S\5      r~ " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rS r " S S\5      r " S S\5      rg)    N)__version__util)ConfigError)reloader_enginesc                     0 nU =(       d    Sn [          H8  nU" 5       nUR                  U ;   a  M  UR                  5       XR                  '   M:     U$ )N )KNOWN_SETTINGSnamecopy)ignoresettingsssettings       A/var/www/html/env/lib/python3.13/site-packages/gunicorn/config.pymake_settingsr      sI    H\rF#<<6!!(	 
 O    c                     [         R                  " SU[         R                  5      (       a  UR                  SSS5      n[	        US5      $ )Nz0(\d)00o   r   )rematch
IGNORECASEreplaceint)_xs     r   auto_intr   '   s7    	xx!R]]++IIc4#q!9r   c                      ^  \ rS rSrSS jrS rS rU 4S jrS rS r	S r
\S	 5       r\S
 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       rSrU =r$ )Config.   c                     [        5       U l        Xl        U=(       d0    [        R                  R                  [        R                  S   5      U l        [        R                  R                  5       U l        g )Nr   )r   r   usageospathbasenamesysargvprogenvironr   env_orig)selfr#   r)   s      r   __init__Config.__init__0   sE    %
9BGG,,SXXa[9	

)r   c           	      ^   / n[        S U R                   5       5      n[        U R                  5       Hf  nU R                  U   R                  n[	        U5      (       a  SR                  UR                  5      nUR                  SR                  X4US95        Mh     SR                  U5      $ )Nc              3   8   #    U  H  n[        U5      v   M     g 7fN)len).0ks     r   	<genexpr>!Config.__str__.<locals>.<genexpr>8   s     1=a3q66=s   z<{}()>z{k:{kmax}} = {v})r4   vkmax
)	maxr   sortedvaluecallableformat__qualname__appendjoin)r,   linesr8   r4   r7   s        r   __str__Config.__str__6   s    14==11&Aa &&A{{OOANN3LL+22Q$2GH	 '
 yyr   c                 v    XR                   ;  a  [        SU-  5      eU R                   U   R                  5       $ Nz No configuration setting for: %s)r   AttributeErrorget)r,   r
   s     r   __getattr__Config.__getattr__@   s5    }}$ !Cd!JKK}}T"&&((r   c                 d   > US:w  a  XR                   ;   a  [        S5      e[        TU ]  X5        g )Nr   zInvalid access!)r   rG   super__setattr__)r,   r
   r<   	__class__s      r   rM   Config.__setattr__E   s-    :$--"7 !233D(r   c                 z    XR                   ;  a  [        SU-  5      eU R                   U   R                  U5        g rF   )r   rG   set)r,   r
   r<   s      r   rQ   
Config.setJ   s4    }}$ !Cd!JKKd&r   c                 l    SU R                   ;   a#  [        R                  " U R                   S   5      $ / $ )NGUNICORN_CMD_ARGS)r+   shlexsplitr,   s    r   get_cmd_args_from_envConfig.get_cmd_args_from_envO   s,    $--/;;t}}-@ABB	r   c           	         U R                   U R                  S.n[        R                  " S0 UD6nUR	                  SSS[        R
                  S[        -   S-   SS9  UR	                  S	S
[        R
                  S9  [        U R                  U R                  R                  S9nU H!  nU R                  U   R                  U5        M#     U$ )N)r#   r)   z-vz	--versionversionz%(prog)s (version z)
z&show program's version number and exit)actiondefaultr[   helpargs*)nargsr^   )keyr   )r#   r)   argparseArgumentParseradd_argumentSUPPRESSr   r;   r   __getitem__
add_option)r,   kwargsparserkeysr4   s        r   rj   Config.parserT   s    ZZII
 ((262D+#,h6G6G$8;$F$N!I 	 	K 	F#H4E4EFdmm)B)BCAMM!''/  r   c                     U R                   S   R                  5       n[        U[        5      (       a7  UR	                  S5      =(       d    US:H  nU(       a  U R
                  S:  a  gU$ UR                  $ )Nworker_class
SyncWorkersyncr   gthread)r   rH   
isinstancestrendswiththreads__name__)r,   uriis_syncs      r   worker_class_strConfig.worker_class_strf   s]    mmN+//1c3ll<0AC6MG4<<!+ J||r   c                 H   U R                   S   R                  5       n[        U[        5      =(       a    UR	                  S5      =(       d    US:H  nU(       a  U R
                  S:  a  Sn[        R                  " U5      n[        US5      (       a  UR                  5         U$ )Nrn   ro   rp   r   z%gunicorn.workers.gthread.ThreadWorkersetup)
r   rH   rr   rs   rt   ru   r   
load_classhasattrr|   )r,   rw   rx   rn   s       r   rn   Config.worker_classr   s    mmN+//1 S#&XCLL,F,W#QW-t||a'9Cs+<)) r   c                     U R                   S   R                  5       nU Vs/ s H-  n[        R                  " [        R                  " U5      5      PM/     sn$ s  snf )Nbind)r   rH   r   parse_addressbytes_to_str)r,   r   r   s      r   addressConfig.address   sG    MM&!%%'HIJ""4#4#4T#:;JJJs   4Ac                 <    U R                   S   R                  5       $ )Nuserr   rH   rW   s    r   uid
Config.uid   s    }}V$((**r   c                 <    U R                   S   R                  5       $ )Ngroupr   rW   s    r   gid
Config.gid   s    }}W%))++r   c                     U R                   S   R                  5       nUb  U$ U R                   S   R                  5       $ )N	proc_namedefault_proc_namer   )r,   pns     r   r   Config.proc_name   s<    ]];'++->I==!4599;;r   c                 Z   U R                   S   R                  5       nUS:X  a  [        R                  nU[        R                  :X  a,  SU R                   ;   a  U R                   S   R                  b  Sn[
        R                  " USSS9n[        US5      (       a  UR                  5         U$ )	Nlogger_classsimplestatsd_hostz!gunicorn.instrument.statsd.Statsdgunicorn.glogging.Loggerzgunicorn.loggers)r]   sectioninstall)	r   rH   LoggerClassr]   r<   r   r}   r~   r   )r,   rw   r   s      r   r   Config.logger_class   s    mmN+//1(?%%C +%%%-$--2N2T2T2`9.&(
 <++  "r   c                 @    U R                   =(       d    U R                  $ r1   )certfilekeyfilerW   s    r   is_sslConfig.is_ssl   s    }},,r   c                     0 nU R                   R                  5        H)  u  p#UR                  S:X  d  M  UR                  5       X'   M+     U$ )NSSL)r   itemsr   rH   )r,   optsr
   r<   s       r   ssl_optionsConfig.ssl_options   s@    ==..0KD}}%"YY[
 1 r   c                     U R                   S   R                  5       n0 nU(       d  U$ U H2  n[        R                  " U5      n UR	                  SS5      u  pVXbU'   M4     U$ ! [
         a    [        SU-  5      ef = f)Nraw_env=r   environment setting %r invalid)r   rH   r   r   rV   
ValueErrorRuntimeError)r,   r   enver   r4   r7   s          r   r   
Config.env   s    --	*..0JA!!!$AIwwsA F  
  I"#Ca#GHHIs   A##A<c                     U R                   S   R                  5       b  gS[        R                  ;   a&  [        R                  S   R	                  5       nUS;   $ g)NsendfileFSENDFILE)y1yestrueT)r   rH   r$   r*   lower)r,   r   s     r   r   Config.sendfile   sO    ==$((*6#zz*-335H888r   c                 <    U R                   S   R                  5       $ )N
reuse_portr   rW   s    r   r   Config.reuse_port   s    }}\*..00r   c                 H   U R                   S   R                  5       nUc  g 0 nU H\  n[        R                  " U5      n [        R
                  " SUS5      u  pVUR                  SS5      nUR                  SS5      nXbU'   M^     U$ ! [         a    [        SU-  5      ef = f)Nraw_paste_global_confz(?<!\\)=r   r   z\=r   )	r   rH   r   r   r   rV   r   r   r   )r,   raw_global_confglobal_confr   r   r4   r7   s          r   paste_global_confConfig.paste_global_conf   s    --(?@DDF" A!!!$AIxxQ2 		%%A		%%AN !   I"#Ca#GHHIs    BB!)r+   r)   r   r#   )NN)rv   
__module__r?   __firstlineno__r-   rC   rI   rM   rQ   rX   rj   propertyry   rn   r   r   r   r   r   r   r   r   r   r   r   __static_attributes____classcell__rN   s   @r   r    r    .   s,   * )
)
'

$ 	 	   K K + + , , < <  * - -    $   1 1  r   r    c                   .   ^  \ rS rSrU 4S jrS rSrU =r$ )SettingMeta   c                 \  > [         TU ]  nU Vs/ s H  n[        U[        5      (       d  M  UPM     nnU(       d	  U" XX#5      $ [	        [
        5      US'   [        US   5      US'   U" XX#5      nUR                  UR                  SS5      5        [
        R                  U5        U$ s  snf )Norder	validatordesc )
rL   __new__rr   r   r2   r	   staticmethodfmt_descrH   r@   )	clsr
   basesattrs	super_newbparents	new_classrN   s	           r   r   SettingMeta.__new__   s    GO	#Bez!['A1eBS55^,g)%*<=kc6	599VR01i( Cs
   B)B)c                     [         R                  " U5      R                  5       n[        U SU5        [        U SUR	                  5       S   5        g )Nr   shortr   )textwrapdedentstripsetattr
splitlines)r   r   s     r   r   SettingMeta.fmt_desc   s=    t$**,VT"Wdoo/23r   r   )rv   r   r?   r   r   r   r   r   r   s   @r   r   r      s    4 4r   r   c                   v    \ rS rSrSrSrSrSrSrSr	Sr
SrSrSrSrSrSrS rS rS rS rS rS r\rS	 rS
rg)Settingi  Nc                 V    U R                   b  U R                  U R                   5        g g r1   )r]   rQ   rW   s    r   r-   Setting.__init__  s!    <<#HHT\\" $r   c                 *   U R                   (       d  g [        U R                   5      nU R                  < SU R                  < S3nUR	                  SS5      nU R
                  U R                  =(       d    SU R                  =(       d    [        S US.nU R                  b  U R                  US'   US   S:w  a  UR                  S	5        U R                  b  U R                  US
'   U R                  b  U R                  US'   UR                  " U0 UD6  g )Nz []%z%%store)destr\   typer]   r^   metavarr\   r   ra   const)clitupler   r]   r   r
   r\   r   rs   metapopra   r   re   )r,   rj   r_   help_txtri   s        r   rh   Setting.add_option  s    xxTXX $

DLL9##C. IIkk,WII$
 99  $		F9(w&JJv::!"jjF7O::!"jjF7OT,V,r   c                 .    [         R                   " U 5      $ r1   )r   rW   s    r   r   Setting.copy3  s    yyr   c                     U R                   $ r1   r<   rW   s    r   rH   Setting.get6  s    zzr   c                     [        U R                  5      (       d  [        SU R                  -  5      eU R                  U5      U l        g )NzInvalid validator: %s)r=   r   	TypeErrorr
   r<   )r,   vals     r   rQ   Setting.set9  s6    ''3dii?@@^^C(
r   c                 t    U R                   UR                   :H  =(       a    U R                  UR                  :  $ r1   )r   r   )r,   others     r   __lt__Setting.__lt__>  s,    - )

U[[(	*r   c                     SU R                   R                  U R                   R                  [        U 5      U R                  4-  $ )Nz"<%s.%s object at %x with value %r>)rN   r   rv   idr<   rW   s    r   __repr__Setting.__repr__C  s<    3NN%%NN##tHJJ	7
 
 	
r   r   )rv   r   r?   r   r
   r<   r   r   r   r   r   r\   r]   r   r   ra   r   r-   rh   r   rH   rQ   r  __cmp__r  r   r   r   r   r   r     sm    DEG
CIDDFGEDEE#-<)
* G
r   r   c                 &   U c  g [        U [        5      (       a  U $ [        U [        5      (       d  [        SU -  5      eU R	                  5       R                  5       S:X  a  gU R	                  5       R                  5       S:X  a  g[        SU -  5      e)NInvalid type for casting: %sr   TfalseFzInvalid boolean: %s)rr   boolrs   r   r   r   r   r   s    r   validate_boolr  O  s    
{#t
c36<==
yy{f$					'.455r   c                 L    [        U [        5      (       d  [        SU -  5      eU $ )NzValue is not a dictionary: %s )rr   dictr   r  s    r   validate_dictr  _  s%    c4  83>??Jr   c                     [        U [        5      (       d  [        U S5      n O[        U 5      n U S:  a  [        SU -  5      eU $ )Nr   zValue must be positive: %s)rr   r   r   r  s    r   validate_pos_intr  e  sB    c3#qk #h
Qw5;<<Jr   c                 l    U [         R                  :w  a  [        R                  R	                  S5        U $ )NzXWarning: option `ssl_version` is deprecated and it is ignored. Use ssl_context instead.
)
SSLVersionr]   r'   stderrwriter  s    r   validate_ssl_versionr  p  s(    
j   

tuJr   c                 p    U c  g [        U [        5      (       d  [        SU -  5      eU R                  5       $ )NzNot a string: %s)rr   rs   r   r   r  s    r   validate_stringr  v  s4    
{c3*S01199;r   c                 r    U c  g [         R                  R                  U 5      (       d  [        SU -  5      eU $ )NzFile %s does not exists.)r$   r%   existsr   r  s    r   validate_file_existsr  ~  s3    
{77>>#3c9::Jr   c                     U (       d  / $ [        U [        5      (       a  U /n U  Vs/ s H  n[        U5      PM     sn$ s  snf r1   )rr   rs   r  r   r7   s     r   validate_list_stringr    s=    	 #se(+,1OA,,,s   >c                 V    [        U 5       Vs/ s H  n[        U5      PM     sn$ s  snf r1   )r  r  r  s     r   validate_list_of_existing_filesr!    s'    -A#-FG-F #-FGGGs   &c                 j    [        U 5      n U  H!  nUS:X  a  M  [        R                  " U5      nM#     U $ )Nr`   )validate_string_to_list	ipaddress
ip_address)r   addr_vaid_ips      r   validate_string_to_addr_listr(    s7    
!#
&C3;''- 
 Jr   c                     [        U 5      n U (       d  / $ U R                  S5       Vs/ s H  o(       d  M  UR                  5       PM     sn$ s  snf )N,)r  rV   r   r  s     r   r#  r#    s>    
#
C	"yy~3~!IAGGI~333s
   
AAc                     [         R                  " U 5      (       d  [         R                  " U 5      (       a  U " 5       n [         R                  " U 5      (       a  U $ [	        U 5      $ r1   )inspect
isfunctionismethodisclassr  r  s    r   validate_classr0    sI    #'"2"23"7"7es
3r   c                    ^  U 4S jnU$ )Nc                   > [        U [        5      (       a+   U R                  SS5      u  p [        X/S9n[        X25      n [        U 5      (       d  [	        SU -  5      eTS	:w  a(  T[        R                  " U 5      :w  a  [	        S
T-  5      eU $ ! [         a    [	        SU -  5      ef = f! [         a  n[	        [        U5      5      eS nAf[         a    [	        SU< SU< S35      ef = f)N.r   zFValue '%s' is not import string. Format: module[.submodules...].object)fromlistzCan not load 'z' from ''zValue is not callable: %szValue must have an arity of: %s)rr   rs   rsplitr   r   
__import__getattrImportErrorrG   r=   r   	get_arity)r   mod_nameobj_namemodr   aritys        r   _validate_callable-validate_callable.<locals>._validate_callable  s    c3O%(ZZQ%7"; J?c, }}7#=>>B;5DNN3$77=EFF
  O !HJM!N O OO  (A''! ;&.!: ; ;;s"   B B, B),
C,6C

"C,r   )r?  r@  s   ` r   validate_callablerB    s    ( r   c                    U c  [         R                  " 5       $ [        U [        5      (       a  U $ U R	                  5       (       a  [        U 5      $  [
        R                  " U 5      R                  $ ! [         a    [        SU -  5      ef = f)NzNo such user: '%s')
r$   geteuidrr   r   isdigitpwdgetpwnampw_uidKeyErrorr   r  s    r   validate_userrJ    ss    
{zz|#s
	3x	:<<$+++ 	:2S899	:   A1 1B
c                    U c  [         R                  " 5       $ [        U [        5      (       a  U $ U R	                  5       (       a  [        U 5      $  [
        R                  " U 5      R                  $ ! [         a    [        SU -  5      ef = f)NzNo such group: '%s')
r$   getegidrr   r   rE  grpgetgrnamgr_gidrI  r   r  s    r   validate_grouprQ    ss    
{zz|#s
	3x	;<<$+++ 	;3c9::	;rK  c                    ^  [        S5      " T 5      m [        R                  " T 5      nUS:X  a  T $ US:X  a  U 4S j$ US:X  a  U 4S j$ [        S5      e)Nr6        c                    > T" XU5      $ r1   r   )workerreqr   _rr   s       r   <lambda>'validate_post_request.<locals>.<lambda>  s    CS,Ar      c                    > T" X5      $ r1   r   )rV  rW  _erX  r   s       r   rY  rZ    s
    3v+;r   zValue must have an arity of: 4)rB  r   r;  r   )r   largss   ` r   validate_post_requestr_    sR    
B

$CNN3Ez
	!AA	!;;899r   c                 Z   [        U 5      n [        R                  R                  [        R                  R	                  [        R                  R                  [        R                  " 5       U 5      5      5      n[        R                  R                  U5      (       d  [        SU -  5      eU$ )Nzcan't chdir to %r)
r  r$   r%   abspathnormpathrA   r   getcwdr  r   )r   r%   s     r   validate_chdirrd    so    
#
C 77??277++BGGLL,LMND 77>>$-344Kr   c                     [        U 5      n U c  g [        R                  " SU 5      nU(       a  S[        UR	                  S5      5      4$  [
        R                  " U SS9nU$ ! [         a    [        S5      ef = f)Nz^unix:(\d+)$unixr   8125)default_portz1Value must be one of ('host:port', 'unix://PATH'))	r  r   r   r   r   r   r   r   r   )r   unix_hostname_regressionr   s      r   validate_statsd_addressrj    s    
#
C
{  "xx=4::1=>??M$$Sv> N  MKLLMs   A" "A8c                 6    U [         ;  a  [        SU -  5      eU $ )NzInvalid reload_engine: %r)r   r   r  s    r   validate_reload_enginerl    s!    
""5;<<Jr   c                      [         R                  R                  [         R                  R                  [         R                  " 5       5      S5      n [         R                  R                  U 5      (       a  U $ g )Nzgunicorn.conf.py)r$   r%   rA   ra  rc  r  )config_paths    r   get_default_config_filero    sH    '',,rwwryy{;13K	ww~~k""r   c                   4    \ rS rSrSrSrSS/rSr\r	Sr
SrS	rg
)
ConfigFilei&  configConfig Filez-cz--configCONFIGz./gunicorn.conf.pya          :ref:`The Gunicorn config file<configuration_file>`.

        A string of the form ``PATH``, ``file:PATH``, or ``python:MODULE_NAME``.

        Only has an effect when specified on the command line or as part of an
        application specific configuration.

        By default, a file named ``gunicorn.conf.py`` will be read from the same
        directory where gunicorn is being run.

        .. versionchanged:: 19.4
           Loading the config from a Python module requires the ``python:``
           prefix.
        r   Nrv   r   r?   r   r
   r   r   r   r  r   r]   r   r   r   r   r   rq  rq  &  s,    DG
CDI"GDr   rq  c                   ,    \ rS rSrSrSrSr\rSr	Sr
Srg)WSGIAppi>  wsgi_apprs  STRINGNzz        A WSGI application path in pattern ``$(MODULE_NAME):$(VARIABLE_NAME)``.

        .. versionadded:: 20.1.0
        r   rv   r   r?   r   r
   r   r   r  r   r]   r   r   r   r   r   rw  rw  >  s"    DGDIGDr   rw  c                       \ rS rSrSrSrSrSS/rSr\	r
S\R                  ;   a,  S	R                  \R                  R                  S5      5      /rOS
/rSrSrg)BindiK  r   r@   Server Socketz-bz--bindADDRESSPORTz0.0.0.0:{0}z127.0.0.1:8000an          The socket to bind.

        A string of the form: ``HOST``, ``HOST:PORT``, ``unix:PATH``,
        ``fd://FD``. An IP is a valid ``HOST``.

        .. versionchanged:: 20.0
           Support for ``fd://FD`` got added.

        Multiple addresses can be bound. ex.::

            $ gunicorn -b 127.0.0.1:8000 -b [::1]:8000 test:app

        will bind the `test:app` application on localhost both on ipv6
        and ipv4 interfaces.

        If the ``PORT`` environment variable is defined, the default
        is ``['0.0.0.0:$PORT']``. If it is not defined, the default
        is ``['127.0.0.1:8000']``.
        r   N)rv   r   r?   r   r
   r\   r   r   r   r  r   r$   r*   r>   rH   r]   r   r   r   r   r   r|  r|  K  s`    DFG
CD$I ''

v(>?@#$Dr   r|  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
Backlogin  backlogr}  z	--backlogINTi   a{          The maximum number of pending connections.

        This refers to the number of clients that can be waiting to be served.
        Exceeding this number results in the client getting an error when
        attempting to connect. It should only affect servers under significant
        load.

        Must be a positive integer. Generally set in the 64-2048 range.
        r   Nrv   r   r?   r   r
   r   r   r   r  r   r   r   r]   r   r   r   r   r   r  r  n  s.    DG-CD IDG	Dr   r  c                   x    \ rS rSrSrSrSS/rSr\r	\
r\
" \R                  R                  SS5      5      rS	rS
rg)Workersi  workersWorker Processesz-wz	--workersr  WEB_CONCURRENCYr   a          The number of worker processes for handling requests.

        A positive integer generally in the ``2-4 x $(NUM_CORES)`` range.
        You'll want to vary this a bit to find the best for your particular
        application's work load.

        By default, the value of the ``WEB_CONCURRENCY`` environment variable,
        which is set by some Platform-as-a-Service providers such as Heroku. If
        it is not defined, the default is ``1``.
        r   N)rv   r   r?   r   r
   r   r   r   r  r   r   r   r$   r*   rH   r]   r   r   r   r   r   r  r    sF    D G
CD ID"**..!2A67G
Dr   r  c                   4    \ rS rSrSrSrSS/rSr\r	Sr
SrS	rg
)WorkerClassi  rn   r  z-kz--worker-classry  rp   a          The type of workers to use.

        The default class (``sync``) should handle most "normal" types of
        workloads. You'll want to read :doc:`design` for information on when
        you might want to choose one of the other worker classes. Required
        libraries may be installed using setuptools' ``extras_require`` feature.

        A string referring to one of the following bundled classes:

        * ``sync``
        * ``eventlet`` - Requires eventlet >= 0.24.1 (or install it via
          ``pip install gunicorn[eventlet]``)
        * ``gevent``   - Requires gevent >= 1.4 (or install it via
          ``pip install gunicorn[gevent]``)
        * ``tornado``  - Requires tornado >= 0.2 (or install it via
          ``pip install gunicorn[tornado]``)
        * ``gthread``  - Python 2 requires the futures package to be installed
          (or install it via ``pip install gunicorn[gthread]``)

        Optionally, you can provide your own worker by giving Gunicorn a
        Python path to a subclass of ``gunicorn.workers.base.Worker``.
        This alternative syntax will load the gevent class:
        ``gunicorn.workers.ggevent.GeventWorker``.
        r   Nrv   r   r?   r   r
   r   r   r   r0  r   r]   r   r   r   r   r   r  r    s-    D G!
"CDIGDr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
WorkerThreadsi  ru   r  z	--threadsr  r   am          The number of worker threads for handling requests.

        Run each worker with the specified number of threads.

        A positive integer generally in the ``2-4 x $(NUM_CORES)`` range.
        You'll want to vary this a bit to find the best for your particular
        application's work load.

        If it is not defined, the default is ``1``.

        This setting only affects the Gthread worker type.

        .. note::
           If you try to use the ``sync`` worker type and set the ``threads``
           setting to more than 1, the ``gthread`` worker type will be used
           instead.
        r   Nr  r   r   r   r  r    s.    D G-CD IDGDr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
WorkerConnectionsi  worker_connectionsr  z--worker-connectionsr  i  z        The maximum number of simultaneous clients.

        This setting only affects the ``gthread``, ``eventlet`` and ``gevent`` worker types.
        r   Nr  r   r   r   r  r    s/    D G!
"CD IDGDr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
MaxRequestsi  max_requestsr  z--max-requestsr  r   a          The maximum number of requests a worker will process before restarting.

        Any value greater than zero will limit the number of requests a worker
        will process before automatically restarting. This is a simple method
        to help limit the damage of memory leaks.

        If this is set to zero (the default) then the automatic worker
        restarts are disabled.
        r   Nr  r   r   r   r  r    s/    D G
CD IDG	Dr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
MaxRequestsJitteri  max_requests_jitterr  z--max-requests-jitterr  r   aB          The maximum jitter to add to the *max_requests* setting.

        The jitter causes the restart per worker to be randomized by
        ``randint(0, max_requests_jitter)``. This is intended to stagger worker
        restarts to avoid all workers restarting at the same time.

        .. versionadded:: 19.2
        r   Nr  r   r   r   r  r    s/     D G"
#CD IDGDr   r  c                   8    \ rS rSrSrSrSS/rSr\r	\
rSrSrS	rg
)Timeouti  timeoutr  z-tz	--timeoutr     aH          Workers silent for more than this many seconds are killed and restarted.

        Value is a positive number or 0. Setting it to 0 has the effect of
        infinite timeouts by disabling timeouts for all workers entirely.

        Generally, the default of thirty seconds should suffice. Only set this
        noticeably higher if you're sure of the repercussions for sync workers.
        For the non sync workers it just means that the worker process is still
        communicating and is not tied to the length of time required to handle a
        single request.
        r   Nr  r   r   r   r  r    s1    D G
CD IDGDr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
GracefulTimeouti!  graceful_timeoutr  z--graceful-timeoutr  r  a          Timeout for graceful workers restart.

        After receiving a restart signal, workers have this much time to finish
        serving requests. Workers still alive after the timeout (starting from
        the receipt of the restart signal) are force killed.
        r   Nr  r   r   r   r  r  !  s/    D G
 CD IDGDr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
	Keepalivei2  	keepaliver  z--keep-aliver  r[  a          The number of seconds to wait for requests on a Keep-Alive connection.

        Generally set in the 1-5 seconds range for servers with direct connection
        to the client (e.g. when you don't have separate load balancer). When
        Gunicorn is deployed behind a load balancer, it often makes sense to
        set this to a higher value.

        .. note::
           ``sync`` worker does not support persistent connections and will
           ignore this option.
        r   Nr  r   r   r   r  r  2  s/    D G
CD IDGDr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
LimitRequestLineiH  limit_request_lineSecurityz--limit-request-liner  i  a          The maximum size of HTTP request line in bytes.

        This parameter is used to limit the allowed size of a client's
        HTTP request-line. Since the request-line consists of the HTTP
        method, URI, and protocol version, this directive places a
        restriction on the length of a request-URI allowed for a request
        on the server. A server needs this value to be large enough to
        hold any of its resource names, including any information that
        might be passed in the query part of a GET request. Value is a number
        from 0 (unlimited) to 8190.

        This parameter can be used to prevent any DDOS attack.
        r   Nr  r   r   r   r  r  H  s/    DG!
"CD IDGDr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
LimitRequestFieldsi`  limit_request_fieldsr  z--limit-request-fieldsr  d   a?          Limit the number of HTTP headers fields in a request.

        This parameter is used to limit the number of headers in a request to
        prevent DDOS attack. Used with the *limit_request_field_size* it allows
        more safety. By default this value is 100 and can't be larger than
        32768.
        r   Nr  r   r   r   r  r  `  s/    !DG#
$CD IDGDr   r  c                   6    \ rS rSrSrSrS/rSr\r	\
rSrSrSrg	)
LimitRequestFieldSizeir  limit_request_field_sizer  z--limit-request-field_sizer  i  a6          Limit the allowed size of an HTTP request header field.

        Value is a positive number or 0. Setting it to 0 will allow unlimited
        header field sizes.

        .. warning::
           Setting this parameter to a very high or unlimited value can open
           up for DDOS attacks.
        r   Nr  r   r   r   r  r  r  s/    %DG'
(CD IDG	Dr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
Reloadi  reload	Debuggingz--reload
store_trueFa          Restart workers when code changes.

        This setting is intended for development. It will cause workers to be
        restarted whenever application code changes.

        The reloader is incompatible with application preloading. When using a
        paste configuration be sure that the server block does not import any
        application code or the reload will not work as designed.

        The default behavior is to attempt inotify with a fallback to file
        system polling. Generally, inotify should be preferred if available
        because it consumes less system resources.

        .. note::
           In order to use the inotify reloader, you must have the ``inotify``
           package installed.
        r   Nrv   r   r?   r   r
   r   r   r  r   r\   r]   r   r   r   r   r   r  r    s)    DG,CIFGDr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg	)
ReloadEnginei  reload_enginer  z--reload-enginery  autoz        The implementation that should be used to power :ref:`reload`.

        Valid engines are:

        * ``'auto'``
        * ``'poll'``
        * ``'inotify'`` (requires inotify)

        .. versionadded:: 19.7
        r   N)rv   r   r?   r   r
   r   r   r   rl  r   r]   r   r   r   r   r   r  r    s*    DG
CD&IG
Dr   r  c                   6    \ rS rSrSrSrSrS/rSr\	r
/ rSrSrg	)
ReloadExtraFilesi  reload_extra_filesr@   r  z--reload-extra-fileFILESz        Extends :ref:`reload` option to also watch and reload on additional files
        (e.g., templates, configurations, specifications, etc.).

        .. versionadded:: 19.8
        r   N)rv   r   r?   r   r
   r\   r   r   r   r!  r   r]   r   r   r   r   r   r  r    s/    DFG 
!CD/IGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
Spewi  spewr  z--spewr  Fz|        Install a trace function that spews every line executed by the server.

        This is the nuclear option.
        r   Nr  r   r   r   r  r    s)    DG*CIFGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
ConfigChecki  check_configr  z--check-configr  Fz        Check the configuration and exit. The exit status is 0 if the
        configuration is correct, and 1 if the configuration is incorrect.
        r   Nr  r   r   r   r  r    s*    DG
CIFGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
PrintConfigi  print_configr  z--print-configr  Fza        Print the configuration settings as fully resolved. Implies :ref:`check-config`.
        r   Nr  r   r   r   r  r    s*    DG
CIFGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)

PreloadAppi  preload_appServer Mechanicsz	--preloadr  FaY          Load application code before the worker processes are forked.

        By preloading an application you can save some RAM resources as well as
        speed up server boot times. Although, if you defer application loading
        to each worker process, you can reload your application code easily by
        restarting workers.
        r   Nr  r   r   r   r  r    s)    D G-CIFGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
Sendfilei  r   r  z--no-sendfilestore_constFa          Disables the use of ``sendfile()``.

        If not set, the value of the ``SENDFILE`` environment variable is used
        to enable or disable its usage.

        .. versionadded:: 19.2
        .. versionchanged:: 19.4
           Swapped ``--sendfile`` with ``--no-sendfile`` to actually allow
           disabling.
        .. versionchanged:: 19.6
           added support for the ``SENDFILE`` environment variable
        r   N)rv   r   r?   r   r
   r   r   r  r   r\   r   r   r   r   r   r   r  r    s*    D G
CIFEDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
	ReusePorti  r   r  z--reuse-portr  Fzg        Set the ``SO_REUSEPORT`` flag on the listening socket.

        .. versionadded:: 19.8
        r   Nr  r   r   r   r  r    s*    D G
CIFGDr   r  c                   P    \ rS rSrSrSrS/r\r\	R                  " 5       rSrSrSrg)	Chdiri$  chdirr  z--chdirz``'.'``zM        Change directory to specified directory before loading apps.
        r   N)rv   r   r?   r   r
   r   r   rd  r   r   rc  r]   default_docr   r   r   r   r   r  r  $  s/    D G+CIkkmGKDr   r  c                   4    \ rS rSrSrSrSS/r\rSr	Sr
SrS	rg
)Daemoni0  daemonr  z-Dz--daemonr  Fz        Daemonize the Gunicorn process.

        Detaches the server from the controlling terminal and enters the
        background.
        r   Nr  r   r   r   r  r  0  s,    D G
CIFGDr   r  c                   8    \ rS rSrSrSrSrSS/rSr\	r
/ rSrS	rg
)Envi?  r   r@   r  z-ez--envENVa|          Set environment variables in the execution environment.

        Should be a list of strings in the ``key=value`` format.

        For example on the command line:

        .. code-block:: console

            $ gunicorn -b 127.0.0.1:8000 --env FOO=1 test:app

        Or in the configuration file:

        .. code-block:: python

            raw_env = ["FOO=1"]
        r   Nrv   r   r?   r   r
   r\   r   r   r   r  r   r]   r   r   r   r   r   r  r  ?  s0    DF G/CD$IGDr   r  c                   4    \ rS rSrSrSrSS/rSr\r	Sr
SrS	rg)
Pidfilei[  pidfiler  z-pz--pidFILENzf        A filename to use for the PID file.

        If not set, no PID file will be written.
        r   ru  r   r   r   r  r  [  s+    D G/CDIGDr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)	WorkerTmpDirii  worker_tmp_dirr  z--worker-tmp-dirDIRNa          A directory to use for the worker heartbeat temporary file.

        If not set, the default temporary directory will be used.

        .. note::
           The current heartbeat system involves calling ``os.fchmod`` on
           temporary file handlers and may block a worker for arbitrary time
           if the directory is on a disk-backed filesystem.

           See :ref:`blocking-os-fchmod` for more detailed information
           and a solution for avoiding this problem.
        r   ru  r   r   r   r  r  i  s*    D G
CDIGDr   r  c                   V    \ rS rSrSrSrSS/rSr\r	\
R                  " 5       rSrSrS	rg
)Useri  r   r  z-uz--userUSERz``os.geteuid()``z        Switch worker processes to run as this user.

        A valid user id (as an integer) or the name of a user that can be
        retrieved with a call to ``pwd.getpwnam(value)`` or ``None`` to not
        change the worker process user.
        r   N)rv   r   r?   r   r
   r   r   r   rJ  r   r$   rD  r]   r  r   r   r   r   r   r  r    s7    D G
CDIjjlG$KDr   r  c                   V    \ rS rSrSrSrSS/rSr\r	\
R                  " 5       rSrSrS	rg
)Groupi  r   r  z-gz--groupGROUPz``os.getegid()``z        Switch worker process to run as this group.

        A valid group id (as an integer) or the name of a user that can be
        retrieved with a call to ``pwd.getgrnam(value)`` or ``None`` to not
        change the worker processes group.
        r   N)rv   r   r?   r   r
   r   r   r   rQ  r   r$   rM  r]   r  r   r   r   r   r   r  r    s7    D G
CDIjjlG$KDr   r  c                   8    \ rS rSrSrSrSS/rSr\r	\
rSrSrS	rg
)Umaski  umaskr  z-mz--umaskr  r   a          A bit mask for the file mode on files written by Gunicorn.

        Note that this affects unix socket permissions.

        A valid value for the ``os.umask(mode)`` call or a string compatible
        with ``int(value, 0)`` (``0`` means Python guesses the base, so values
        like ``0``, ``0xFF``, ``0022`` are valid for decimal, hex, and octal
        representations)
        r   N)rv   r   r?   r   r
   r   r   r   r  r   r   r   r]   r   r   r   r   r   r  r    s1    D G
CD IDG	Dr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)

Initgroupsi  
initgroupsr  z--initgroupsr  Fz        If true, set the worker process's group access list with all of the
        groups of which the specified username is a member, plus the specified
        group id.

        .. versionadded:: 19.7
        r   Nr  r   r   r   r  r    s*    D G
CIFGDr   r  c                   ,    \ rS rSrSrSrSr\rSr	Sr
Srg)TmpUploadDiri  tmp_upload_dirr  r  Na6          Directory to store temporary request data as they are read.

        This may disappear in the near future.

        This path should be writable by the process permissions set for Gunicorn
        workers. If not specified, Gunicorn will choose a system generated
        temporary directory.
        r   rz  r   r   r   r  r    s"    D GDIGDr   r  c                   0    \ rS rSrSrSr\rSSSS.rSr	S	r
g
)SecureSchemeHeaderi  secure_scheme_headersr  sslhttpson)zX-FORWARDED-PROTOCOLzX-FORWARDED-PROTOzX-FORWARDED-SSLa~  
        A dictionary containing headers and values that the front-end proxy
        uses to indicate HTTPS requests. If the source IP is permitted by
        :ref:`forwarded-allow-ips` (below), *and* at least one request header matches
        a key-value pair listed in this dictionary, then Gunicorn will set
        ``wsgi.url_scheme`` to ``https``, so your application can tell that the
        request is secure.

        If the other headers listed in this dictionary are not present in the request, they will be ignored,
        but if the other headers are present and do not match the provided values, then
        the request will fail to parse. See the note below for more detailed examples of this behaviour.

        The dictionary should map upper-case header names to exact string
        values. The value comparisons are case-sensitive, unlike the header
        names, so make sure they're exactly what your front-end proxy sends
        when handling HTTPS requests.

        It is important that your front-end proxy configuration ensures that
        the headers defined here can not be passed directly from the client.
        r   Nrv   r   r?   r   r
   r   r  r   r]   r   r   r   r   r   r  r    s(    "D GI %$G
Dr   r  c                   f    \ rS rSrSrSrS/rSr\r	\
R                  R                  SS5      rSrS	rg
)ForwardedAllowIPSi  forwarded_allow_ipsr  z--forwarded-allow-ipsry  FORWARDED_ALLOW_IPS127.0.0.1,::1a
          Front-end's IPs from which allowed to handle set secure headers.
        (comma separated).

        Set to ``*`` to disable checking of front-end IPs. This is useful for setups
        where you don't know in advance the IP address of front-end, but
        instead have ensured via other means that only your
        authorized front-ends can access Gunicorn.

        By default, the value of the ``FORWARDED_ALLOW_IPS`` environment
        variable. If it is not defined, the default is ``"127.0.0.1,::1"``.

        .. note::

            This option does not affect UNIX socket connections. Connections not associated with
            an IP address are treated as allowed, unconditionally.

        .. note::

            The interplay between the request headers, the value of ``forwarded_allow_ips``, and the value of
            ``secure_scheme_headers`` is complex. Various scenarios are documented below to further elaborate.
            In each case, we have a request from the remote address 134.213.44.18, and the default value of
            ``secure_scheme_headers``:

            .. code::

                secure_scheme_headers = {
                    'X-FORWARDED-PROTOCOL': 'ssl',
                    'X-FORWARDED-PROTO': 'https',
                    'X-FORWARDED-SSL': 'on'
                }


            .. list-table::
                :header-rows: 1
                :align: center
                :widths: auto

                * - ``forwarded-allow-ips``
                  - Secure Request Headers
                  - Result
                  - Explanation
                * - .. code::

                        ["127.0.0.1"]
                  - .. code::

                        X-Forwarded-Proto: https
                  - .. code::

                        wsgi.url_scheme = "http"
                  - IP address was not allowed
                * - .. code::

                        "*"
                  - <none>
                  - .. code::

                        wsgi.url_scheme = "http"
                  - IP address allowed, but no secure headers provided
                * - .. code::

                        "*"
                  - .. code::

                        X-Forwarded-Proto: https
                  - .. code::

                        wsgi.url_scheme = "https"
                  - IP address allowed, one request header matched
                * - .. code::

                        ["134.213.44.18"]
                  - .. code::

                        X-Forwarded-Ssl: on
                        X-Forwarded-Proto: http
                  - ``InvalidSchemeHeaders()`` raised
                  - IP address allowed, but the two secure headers disagreed on if HTTPS was used


        r   N)rv   r   r?   r   r
   r   r   r   r(  r   r$   r*   rH   r]   r   r   r   r   r   r  r    s;     D G"
#CD,Ijjnn2ODGQDr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)		AccessLogiR  	accesslogLoggingz--access-logfiler  NzW        The Access log file to write to.

        ``'-'`` means log to stdout.
        r   ru  r   r   r   r  r  R  s*    DG
CDIGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
DisableRedirectAccessToSyslogi`  !disable_redirect_access_to_syslogr  z#--disable-redirect-access-to-syslogr  FzL    Disable redirect access logs to syslog.

    .. versionadded:: 19.8
    r   Nr  r   r   r   r   r   `  s*    .DG0
1CIFGDr   r   c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg	)
AccessLogFormatin  access_log_formatr  z--access-logformatry  z;%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"a          The access log format.

        ===========  ===========
        Identifier   Description
        ===========  ===========
        h            remote address
        l            ``'-'``
        u            user name (if HTTP Basic auth used)
        t            date of the request
        r            status line (e.g. ``GET / HTTP/1.1``)
        m            request method
        U            URL path without query string
        q            query string
        H            protocol
        s            status
        B            response length
        b            response length or ``'-'`` (CLF format)
        f            referrer (note: header is ``referer``)
        a            user agent
        T            request time in seconds
        M            request time in milliseconds
        D            request time in microseconds
        L            request time in decimal seconds
        p            process ID
        {header}i    request header
        {header}o    response header
        {variable}e  environment variable
        ===========  ===========

        Use lowercase for header and environment variable names, and put
        ``{...}x`` names inside ``%(...)s``. For example::

            %({x-forwarded-for}i)s
        r   Nru  r   r   r   r  r  n  s*    DG
 CDIKG"Dr   r  c                   4    \ rS rSrSrSrSS/rSr\r	Sr
SrS	rg
)ErrorLogi  errorlogr  z--error-logfilez
--log-filer  -z        The Error log file to write to.

        Using ``'-'`` for FILE makes gunicorn log to stderr.

        .. versionchanged:: 19.2
           Log to stderr by default.

        r   Nru  r   r   r   r  r    s,    DGl
+CDIGDr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg	)
Logleveli  loglevelr  z--log-levelLEVELinfoz        The granularity of Error log outputs.

        Valid level names are:

        * ``'debug'``
        * ``'info'``
        * ``'warning'``
        * ``'error'``
        * ``'critical'``
        r   Nru  r   r   r   r
  r
    s)    DG/CDIG
Dr   r
  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
CaptureOutputi  capture_outputr  z--capture-outputr  Fzm        Redirect stdout/stderr to specified file in :ref:`errorlog`.

        .. versionadded:: 19.6
        r   Nr  r   r   r   r  r    s*    DG
CIFGDr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg	)
r   i  r   r  z--logger-classry  r   aa          The logger you want to use to log events in Gunicorn.

        The default class (``gunicorn.glogging.Logger``) handles most
        normal usages in logging. It provides error and access logging.

        You can provide your own logger by giving Gunicorn a Python path to a
        class that quacks like ``gunicorn.glogging.Logger``.
        r   Nr  r   r   r   r   r     s*    DG
CDI(GDr   r   c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)		LogConfigi  	logconfigr  z--log-configr  Nzz    The log config file to use.
    Gunicorn uses the standard Python logging module's Configuration
    file format.
    r   ru  r   r   r   r  r    s*    DG
CDIGDr   r  c                   (    \ rS rSrSrSr\r0 rSr	Sr
g)LogConfigDicti  logconfig_dictr  a8      The log config dictionary to use, using the standard Python
    logging module's dictionary configuration format. This option
    takes precedence over the :ref:`logconfig` and :ref:`logconfig-json` options,
    which uses the older file configuration format and JSON
    respectively.

    Format: https://docs.python.org/3/library/logging.config.html#logging.config.dictConfig

    For more context you can look at the default configuration dictionary for logging,
    which can be found at ``gunicorn.glogging.CONFIG_DEFAULTS``.

    .. versionadded:: 19.8
    r   Nr  r   r   r   r  r    s    DGIGDr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)	LogConfigJsoni  logconfig_jsonr  z--log-config-jsonr  Nz    The log config to read config from a JSON file

    Format: https://docs.python.org/3/library/logging.config.html#logging.config.jsonConfig

    .. versionadded:: 20.0
    r   ru  r   r   r   r  r    s*    DG
CDIGDr   r  c                   h    \ rS rSrSrSrS/rSr\r	\
S:X  a  SrO\
S;   a  S	rO\
S
:X  a  SrOSrSrSrg)SyslogToi  syslog_addrr  z--log-syslog-toSYSLOG_ADDRdarwinzunix:///var/run/syslog)freebsd	dragonflyzunix:///var/run/logopenbsdzunix:///dev/logzudp://localhost:514aY      Address to send syslog messages.

    Address is a string of the form:

    * ``unix://PATH#TYPE`` : for unix domain socket. ``TYPE`` can be ``stream``
      for the stream driver or ``dgram`` for the dgram driver.
      ``stream`` is the default.
    * ``udp://HOST:PORT`` : for UDP sockets
    * ``tcp://HOST:PORT`` : for TCP sockets

    r   N)rv   r   r?   r   r
   r   r   r   r  r   PLATFORMr]   r   r   r   r   r   r  r    sR    DG
CDI8*	/	/'	Y	#'Dr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
Syslogi1  syslogr  z--log-syslogr  Fz    Send *Gunicorn* logs to syslog.

    .. versionchanged:: 19.8
       You can now disable sending access logs by using the
       :ref:`disable-redirect-access-to-syslog` setting.
    r   Nr  r   r   r   r%  r%  1  s*    DG
CIFGDr   r%  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)	SyslogPrefixiA  syslog_prefixr  z--log-syslog-prefixSYSLOG_PREFIXNz    Makes Gunicorn use the parameter as program-name in the syslog entries.

    All entries will be prefixed by ``gunicorn.<prefix>``. By default the
    program name is the name of the process.
    r   ru  r   r   r   r(  r(  A  s*    DG 
!CDIGDr   r(  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg	)
SyslogFacilityiP  syslog_facilityr  z--log-syslog-facilitySYSLOG_FACILITYr   z    Syslog facility name
    r   Nru  r   r   r   r,  r,  P  s*    DG"
#CDIGDr   r,  c                   4    \ rS rSrSrSrSS/r\rSr	Sr
SrS	rg
)EnableStdioInheritancei\  enable_stdio_inheritancer  z-Rz--enable-stdio-inheritanceFr  z    Enable stdio inheritance.

    Enable inheritance for stdio file descriptors in daemon mode.

    Note: To disable the Python stdout buffering, you can to set the user
    environment variable ``PYTHONUNBUFFERED`` .
    r   Nrv   r   r?   r   r
   r   r   r  r   r]   r\   r   r   r   r   r   r0  r0  \  s-    %DG-
.CIGFDr   r0  c                   2    \ rS rSrSrSrS/rSrSr\	r
SrSrg)	
StatsdHostin  r   r  z--statsd-hostSTATSD_ADDRNz    The address of the StatsD server to log to.

    Address is a string of the form:

    * ``unix://PATH`` : for a unix domain socket.
    * ``HOST:PORT`` : for a network address

    .. versionadded:: 19.1
    r   )rv   r   r?   r   r
   r   r   r   r]   rj  r   r   r   r   r   r   r4  r4  n  s*    DG
CDG'I	Dr   r4  c                   2    \ rS rSrSrSrS/rSrSr\	r
SrSrg	)
DogstatsdTagsi  dogstatsd_tagsr  z--dogstatsd-tagsDOGSTATSD_TAGSr   z}    A comma-delimited list of datadog statsd (dogstatsd) tags to append to
    statsd metrics.

    .. versionadded:: 20
    r   Nrv   r   r?   r   r
   r   r   r   r]   r  r   r   r   r   r   r   r7  r7    s*    DG
CDGIDr   r7  c                   2    \ rS rSrSrSrS/rSrSr\	r
SrSrg	)
StatsdPrefixi  statsd_prefixr  z--statsd-prefixSTATSD_PREFIXr   z    Prefix to use when emitting statsd metrics (a trailing ``.`` is added,
    if not provided).

    .. versionadded:: 19.2
    r   Nr:  r   r   r   r<  r<    s*    DG
CDGIDr   r<  c                   4    \ rS rSrSrSrSS/rSr\r	Sr
SrS	rg)
Procnamei  r   Process Namingz-nz--namery  Na          A base to use with setproctitle for process naming.

        This affects things like ``ps`` and ``top``. If you're going to be
        running more than one instance of Gunicorn you'll probably want to set a
        name to tell them apart. This requires that you install the setproctitle
        module.

        If not set, the *default_proc_name* setting will be used.
        r   ru  r   r   r   r@  r@    s,    DG
CDIG	Dr   r@  c                   (    \ rS rSrSrSr\rSrSr	Sr
g)DefaultProcNamei  r   rA  gunicornzP        Internal setting that is adjusted for each type of application.
        r   N)rv   r   r?   r   r
   r   r  r   r]   r   r   r   r   r   rC  rC    s    DGIGDr   rC  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)	
PythonPathi  
pythonpathr  z--pythonpathry  Nz        A comma-separated list of directories to add to the Python path.

        e.g.
        ``'/home/djangoprojects/myproject,/home/python/mylibrary'``.
        r   ru  r   r   r   rF  rF    s*    D G
CDIGDr   rF  c                   4    \ rS rSrSrSrSS/rSr\r	Sr
SrS	rg)
Pastei  paster  z--pastez--pasterry  Na[          Load a PasteDeploy config file. The argument may contain a ``#``
        symbol followed by the name of an app section from the config file,
        e.g. ``production.ini#admin``.

        At this time, using alternate server blocks is not supported. Use the
        command line arguments to control server configuration instead.
        r   ru  r   r   r   rI  rI    s,    D Gj
!CDIGDr   rI  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	
OnStartingi  on_startingServer Hooksr   c                     g r1   r   servers    r   rM  OnStarting.on_starting      r   z        Called just before the master process is initialized.

        The callable needs to accept a single instance variable for the Arbiter.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   rM  r   r]   r   r   r   r   r   rL  rL    s1    DG!!$ID;'GDr   rL  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	OnReloadi  	on_reloadrN  r   c                     g r1   r   rP  s    r   rV  OnReload.on_reload  rS  r   z        Called to recycle workers during a reload via SIGHUP.

        The callable needs to accept a single instance variable for the Arbiter.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   rV  r   r]   r   r   r   r   r   rU  rU    s1    DG!!$ID9%GDr   rU  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)		WhenReadyi  
when_readyrN  r   c                     g r1   r   rP  s    r   r[  WhenReady.when_ready  rS  r   z        Called just after the server is started.

        The callable needs to accept a single instance variable for the Arbiter.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   r[  r   r]   r   r   r   r   r   rZ  rZ    s1    DG!!$ID:&GDr   rZ  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	Preforki  pre_forkrN  r[  c                     g r1   r   rQ  rV  s     r   r`  Prefork.pre_fork  rS  r   z        Called just before a worker is forked.

        The callable needs to accept two instance variables for the Arbiter and
        new Worker.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   r`  r   r]   r   r   r   r   r   r_  r_    s1    DG!!$ID8$GDr   r_  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	Postforki  	post_forkrN  r[  c                     g r1   r   rb  s     r   rf  Postfork.post_fork$  rS  r   z        Called just after a worker has been forked.

        The callable needs to accept two instance variables for the Arbiter and
        new Worker.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   rf  r   r]   r   r   r   r   r   re  re    s1    DG!!$ID9%GDr   re  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	PostWorkerIniti/  post_worker_initrN  r   c                     g r1   r   rV  s    r   rk  PostWorkerInit.post_worker_init5  rS  r   z        Called just after a worker has initialized the application.

        The callable needs to accept one instance variable for the initialized
        Worker.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   rk  r   r]   r   r   r   r   r   rj  rj  /  s4    DG!!$ID +,GDr   rj  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)		WorkerIntiA  
worker_intrN  r   c                     g r1   r   rm  s    r   rq  WorkerInt.worker_intG  rS  r   z        Called just after a worker exited on SIGINT or SIGQUIT.

        The callable needs to accept one instance variable for the initialized
        Worker.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   rq  r   r]   r   r   r   r   r   rp  rp  A  s3    DG!!$ID :&GDr   rp  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	WorkerAbortiS  worker_abortrN  r   c                     g r1   r   rm  s    r   rv  WorkerAbort.worker_abortY  rS  r   z        Called when a worker received the SIGABRT signal.

        This call generally happens on timeout.

        The callable needs to accept one instance variable for the initialized
        Worker.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   rv  r   r]   r   r   r   r   r   ru  ru  S  s3    DG!!$ID <(GDr   ru  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	PreExecig  pre_execrN  r   c                     g r1   r   rP  s    r   r{  PreExec.pre_execm  rS  r   z        Called just before a new master process is forked.

        The callable needs to accept a single instance variable for the Arbiter.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   r{  r   r]   r   r   r   r   r   rz  rz  g  s1    DG!!$ID8$GDr   rz  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	
PreRequestiw  pre_requestrN  r[  c                 f    U R                   R                  SUR                  UR                  5        g )Nz%s %s)logdebugmethodr%   )rV  rW  s     r   r  PreRequest.pre_request}  s     

#**chh7r   z        Called just before a worker processes the request.

        The callable needs to accept two instance variables for the Worker and
        the Request.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   r  r   r]   r   r   r   r   r   r  r  w  s1    DG!!$ID8;'GDr   r  c                   >    \ rS rSrSrSr\r\r	S r
\" \
5      rSrSrg)PostRequesti  post_requestrN  c                     g r1   r   )rV  rW  r*   resps       r   r  PostRequest.post_request  rS  r   z        Called after a worker processes the request.

        The callable needs to accept two instance variables for the Worker and
        the Request.
        r   N)rv   r   r?   r   r
   r   r_  r   r=   r   r  r   r]   r   r   r   r   r   r  r    s,    DG%ID<(GDr   r  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)		ChildExiti  
child_exitrN  r[  c                     g r1   r   rb  s     r   r  ChildExit.child_exit  rS  r   z        Called just after a worker has been exited, in the master process.

        The callable needs to accept two instance variables for the Arbiter and
        the just-exited Worker.

        .. versionadded:: 19.7
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   r  r   r]   r   r   r   r   r   r  r    s1    DG!!$ID:&GDr   r  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	
WorkerExiti  worker_exitrN  r[  c                     g r1   r   rb  s     r   r  WorkerExit.worker_exit  rS  r   z        Called just after a worker has been exited, in the worker process.

        The callable needs to accept two instance variables for the Arbiter and
        the just-exited Worker.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   r  r   r]   r   r   r   r   r   r  r    s1    DG!!$ID;'GDr   r  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	NumWorkersChangedi  nworkers_changedrN  rT  c                     g r1   r   )rQ  	new_value	old_values      r   r  "NumWorkersChanged.nworkers_changed  rS  r   a7          Called just after *num_workers* has been changed.

        The callable needs to accept an instance variable of the Arbiter and
        two integers of number of workers after and before change.

        If the number of workers is set for the first time, *old_value* would
        be ``None``.
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   r  r   r]   r   r   r   r   r   r  r    s2    DG!!$ID+,GDr   r  c                   F    \ rS rSrSrSr\" S5      rS r\	" \5      r
SrSrg)	OnExiti  on_exitrN  r   c                     g r1   r   rP  s    r   r  OnExit.on_exit  rS  r   z        Called just before exiting Gunicorn.

        The callable needs to accept a single instance variable for the Arbiter.
        r   N)rv   r   r?   r   r
   r   rB  r   r  r   r]   r   r   r   r   r   r  r    s.    DG!!$I 7#GDr   r  c                   J    \ rS rSrSrSr\" S5      r\r	S r
\" \
5      rSrSrg)	NewSSLContexti  ssl_contextrN  r[  c                     U" 5       $ r1   r   )rr  default_ssl_context_factorys     r   r  NewSSLContext.ssl_context  s    *,,r   aO          Called when SSLContext is needed.

        Allows customizing SSL context.

        The callable needs to accept an instance variable for the Config and
        a factory function that returns default SSLContext which is initialized
        with certificates, private key, cert_reqs, and ciphers according to
        config and can be further customized by the callable.
        The callable needs to return SSLContext object.

        Following example shows a configuration file that sets the minimum TLS version to 1.3:

        .. code-block:: python

            def ssl_context(conf, default_ssl_context_factory):
                import ssl
                context = default_ssl_context_factory()
                context.minimum_version = ssl.TLSVersion.TLSv1_3
                return context

        .. versionadded:: 21.0
        r   N)rv   r   r?   r   r
   r   rB  r   r=   r   r  r   r]   r   r   r   r   r   r  r    s3    DG!!$ID- ;'GDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
ProxyProtocoli  proxy_protocolr  z--proxy-protocolFr  a           Enable detect PROXY protocol (PROXY mode).

        Allow using HTTP and Proxy together. It may be useful for work with
        stunnel as HTTPS frontend and Gunicorn as HTTP server.

        PROXY protocol: http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt

        Example for stunnel config::

            [https]
            protocol = proxy
            accept  = 443
            connect = 80
            cert = /etc/ssl/certs/stunnel.pem
            key = /etc/ssl/certs/stunnel.key
        r   Nr2  r   r   r   r  r    s*    D G
CIGFDr   r  c                   .    \ rS rSrSrSrS/r\rSr	Sr
Srg)	ProxyAllowFromi  proxy_allow_ipsr  z--proxy-allow-fromr  a"          Front-end's IPs from which allowed accept proxy requests (comma separated).

        Set to ``*`` to disable checking of front-end IPs. This is useful for setups
        where you don't know in advance the IP address of front-end, but
        instead have ensured via other means that only your
        authorized front-ends can access Gunicorn.

        .. note::

            This option does not affect UNIX socket connections. Connections not associated with
            an IP address are treated as allowed, unconditionally.
        r   N)rv   r   r?   r   r
   r   r   r(  r   r]   r   r   r   r   r   r  r    s%    D G
 C,IGDr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)	KeyFilei3  r   r   z	--keyfiler  Nz    SSL key file
    r   ru  r   r   r   r  r  3  s)    DG-CDIGDr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)	CertFilei?  r   r   z
--certfiler  Nz    SSL certificate file
    r   ru  r   r   r   r  r  ?  )    DG.CDIGDr   r  c                       \ rS rSrSrSrS/r\r\	" \
S5      (       a  \
R                  rO\
R                  r\
R                  rSrSrg)	r  iK  ssl_versionr   z--ssl-versionPROTOCOL_TLSa      SSL version to use (see stdlib ssl module's).

    .. deprecated:: 21.0
       The option is deprecated and it is currently ignored. Use :ref:`ssl-context` instead.

    ============= ============
    --ssl-version Description
    ============= ============
    SSLv3         SSLv3 is not-secure and is strongly discouraged.
    SSLv23        Alias for TLS. Deprecated in Python 3.6, use TLS.
    TLS           Negotiate highest possible version between client/server.
                  Can yield SSL. (Python 3.6+)
    TLSv1         TLS 1.0
    TLSv1_1       TLS 1.1 (Python 3.4+)
    TLSv1_2       TLS 1.2 (Python 3.4+)
    TLS_SERVER    Auto-negotiate the highest protocol version like TLS,
                  but only support server-side SSLSocket connections.
                  (Python 3.6+)
    ============= ============

    .. versionchanged:: 19.7
       The default value has been changed from ``ssl.PROTOCOL_TLSv1`` to
       ``ssl.PROTOCOL_SSLv23``.
    .. versionchanged:: 20.0
       This setting now accepts string names based on ``ssl.PROTOCOL_``
       constants.
    .. versionchanged:: 20.0.1
       The default value has been changed from ``ssl.PROTOCOL_SSLv23`` to
       ``ssl.PROTOCOL_TLS`` when Python >= 3.6 .
    r   N)rv   r   r?   r   r
   r   r   r  r   r~   r  r  r]   PROTOCOL_SSLv23r   r   r   r   r   r  r  K  sN    DG
C$IsN##""%%!!GDr   r  c                   B    \ rS rSrSrSrS/r\r\	R                  rSrSrg)CertReqsix  	cert_reqsr   z--cert-reqsa`      Whether client certificate is required (see stdlib ssl module's)

    ===========  ===========================
    --cert-reqs      Description
    ===========  ===========================
    `0`          no client verification
    `1`          ssl.CERT_OPTIONAL
    `2`          ssl.CERT_REQUIRED
    ===========  ===========================
    r   N)rv   r   r?   r   r
   r   r   r  r   r  	CERT_NONEr]   r   r   r   r   r   r  r  x  s(    DG/C ImmG
Dr   r  c                   2    \ rS rSrSrSrS/rSr\r	Sr
SrSrg)	CACertsi  ca_certsr   z
--ca-certsr  Nz    CA certificates file
    r   ru  r   r   r   r  r    r  r   r  c                   2    \ rS rSrSrSrS/rSrSr\	r
SrSrg	)
SuppressRaggedEOFsi  suppress_ragged_eofsr   z--suppress-ragged-eofsr  Tz7    Suppress ragged EOFs (see stdlib ssl module's)
    r   N)rv   r   r?   r   r
   r   r   r\   r]   r  r   r   r   r   r   r   r  r    s*    !DG#
$CFGIDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
DoHandshakeOnConnecti  do_handshake_on_connectr   z--do-handshake-on-connectr  FzU    Whether to perform SSL handshake on socket connect (see stdlib ssl module's)
    r   Nr  r   r   r   r  r    s*    $DG&
'CIFGDr   r  c                   .    \ rS rSrSrSrS/r\rSr	Sr
Srg)Ciphersi  ciphersr   z	--ciphersNa      SSL Cipher suite to use, in the format of an OpenSSL cipher list.

    By default we use the default cipher list from Python's ``ssl`` module,
    which contains ciphers considered strong at the time of each Python
    release.

    As a recommended alternative, the Open Web App Security Project (OWASP)
    offers `a vetted set of strong cipher strings rated A+ to C-
    <https://www.owasp.org/index.php/TLS_Cipher_String_Cheat_Sheet>`_.
    OWASP provides details on user-agent compatibility at each security level.

    See the `OpenSSL Cipher List Format Documentation
    <https://www.openssl.org/docs/manmaster/man1/ciphers.html#CIPHER-LIST-FORMAT>`_
    for details on the format of an OpenSSL cipher list.
    r   )rv   r   r?   r   r
   r   r   r  r   r]   r   r   r   r   r   r  r    s$    DG-CIGDr   r  c                   6    \ rS rSrSrSrSrS/rSr\	r
/ rSrSrg	)
PasteGlobalConfi  r   r@   r  z--paste-globalCONFa\          Set a PasteDeploy global config variable in ``key=value`` form.

        The option can be specified multiple times.

        The variables are passed to the PasteDeploy entrypoint. Example::

            $ gunicorn -b 127.0.0.1:8000 --paste development.ini --paste-global FOO=1 --paste-global BAR=2

        .. versionadded:: 19.7
        r   Nr  r   r   r   r  r    s/    "DF G
CD$IG
Dr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
PermitObsoleteFoldingi  permit_obsolete_foldingr  z--permit-obsolete-foldingr  Fa	          Permit requests employing obsolete HTTP line folding mechanism

        The folding mechanism was deprecated by rfc7230 Section 3.2.4 and will not be
         employed in HTTP request headers from standards-compliant HTTP clients.

        This option is provided to diagnose backwards-incompatible changes.
        Use with care and only if necessary. Temporary; the precise effect of this option may
        change in a future version, or it may be removed altogether.

        .. versionadded:: 23.0.0
        r   Nr  r   r   r   r  r    s*    $D G&
'CIFGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
StripHeaderSpacesi  strip_header_spacesr  z--strip-header-spacesr  Fa          Strip spaces present between the header name and the the ``:``.

        This is known to induce vulnerabilities and is not compliant with the HTTP/1.1 standard.
        See https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn.

        Use with care and only if necessary. Deprecated; scheduled for removal in 25.0.0

        .. versionadded:: 20.0.1
        r   Nr  r   r   r   r  r    s*     D G"
#CIFG	Dr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
PermitUnconventionalHTTPMethodi	  !permit_unconventional_http_methodr  z#--permit-unconventional-http-methodr  Fa          Permit HTTP methods not matching conventions, such as IANA registration guidelines

        This permits request methods of length less than 3 or more than 20,
        methods with lowercase characters or methods containing the # character.
        HTTP methods are case sensitive by definition, and merely uppercase by convention.

        If unset, Gunicorn will apply nonstandard restrictions and cause 400 response status
        in cases where otherwise 501 status is expected. While this option does modify that
        behaviour, it should not be depended upon to guarantee standards-compliant behaviour.
        Rather, it is provided temporarily, to assist in diagnosing backwards-incompatible
        changes around the incomplete application of those restrictions.

        Use with care and only if necessary. Temporary; scheduled for removal in 24.0.0

        .. versionadded:: 22.0.0
        r   Nr  r   r   r   r  r  	  s*    .D G0
1CIFGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
PermitUnconventionalHTTPVersioni	  "permit_unconventional_http_versionr  z$--permit-unconventional-http-versionr  Fa          Permit HTTP version not matching conventions of 2023

        This disables the refusal of likely malformed request lines.
        It is unusual to specify HTTP 1 versions other than 1.0 and 1.1.

        This option is provided to diagnose backwards-incompatible changes.
        Use with care and only if necessary. Temporary; the precise effect of this option may
        change in a future version, or it may be removed altogether.

        .. versionadded:: 22.0.0
        r   Nr  r   r   r   r  r  	  s*    /D G1
2CIFGDr   r  c                   2    \ rS rSrSrSrS/r\rSr	Sr
SrSrg	)
CasefoldHTTPMethodi4	  casefold_http_methodr  z--casefold-http-methodr  Fa           Transform received HTTP methods to uppercase

         HTTP methods are case sensitive by definition, and merely uppercase by convention.

         This option is provided because previous versions of gunicorn defaulted to this behaviour.

         Use with care and only if necessary. Deprecated; scheduled for removal in 24.0.0

         .. versionadded:: 22.0.0
         r   Nr  r   r   r   r  r  4	  s*    !D G#
$CIFG
Dr   r  c                 >   U c  g [        U [        5      (       d  [        SU -  5      eU R                  5       R	                  5       S:X  a  gU R                  5       R	                  5       S:X  a  gU R                  5       R	                  5       S:X  a  g[        SU -  5      e)Nr	  droprefuse	dangerousz Invalid header map behaviour: %s)rr   rs   r   r   r   r   r  s    r   validate_header_map_behaviourr  H	  s     {c36<==
yy{f$					(					+;cABBr   c                   .    \ rS rSrSrSrS/r\rSr	Sr
Srg)	ForwarderHeadersiZ	  forwarder_headersr  z--forwarder-headerszSCRIPT_NAME,PATH_INFOa  
        A list containing upper-case header field names that the front-end proxy
        (see :ref:`forwarded-allow-ips`) sets, to be used in WSGI environment.

        This option has no effect for headers not present in the request.

        This option can be used to transfer ``SCRIPT_NAME``, ``PATH_INFO``
        and ``REMOTE_USER``.

        It is important that your front-end proxy configuration ensures that
        the headers defined here can not be passed directly from the client.
        r   N)rv   r   r?   r   r
   r   r   r#  r   r]   r   r   r   r   r   r  r  Z	  s%    D G 
!C'I%GDr   r  c                   .    \ rS rSrSrSrS/r\rSr	Sr
Srg)		HeaderMapio	  
header_mapr  z--header-mapr  ao          Configure how header field names are mapped into environ

        Headers containing underscores are permitted by RFC9110,
        but gunicorn joining headers of different names into
        the same environment variable will dangerously confuse applications as to which is which.

        The safe default ``drop`` is to silently drop headers that cannot be unambiguously mapped.
        The value ``refuse`` will return an error if a request contains *any* such header.
        The value ``dangerous`` matches the previous, not advisable, behaviour of mapping different
        header field names into the same environ name.

        If the source is permitted as explained in :ref:`forwarded-allow-ips`, *and* the header name is
        present in :ref:`forwarder-headers`, the header is mapped into environment regardless of
        the state of this setting.

        Use with care and only if necessary and after considering if your problem could
        instead be solved by specifically renaming or rewriting only the intended headers
        on a proxy in front of Gunicorn.

        .. versionadded:: 22.0.0
        r   N)rv   r   r?   r   r
   r   r   r  r   r]   r   r   r   r   r   r  r  o	  s%    D G
C-IGDr   r  r1   )rc   r   rN  r,  r$  r$   rF  r   rU   r  r'   r   rD  r   r   gunicorn.errorsr   gunicorn.reloaderr   r	   platformr#  r   r   r    r   r   r   r  r  r  r  r  r  r  r!  r(  r#  r0  rB  rJ  rQ  r_  rd  rj  rl  ro  rq  rw  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r
  r  r   r  r  r  r  r%  r(  r,  r0  r4  r7  r<  r@  rC  rF  rI  rL  rU  rZ  r_  re  rj  rp  ru  rz  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r   r   <module>r     sO     
   	 
 	  
 
  & ' .<<| |~4$ 4*G
 G
T i'R
06 -H4 0:;:* 0
g 
 7  Fg (g *' DG 8 ' ( &g ,g " ,w 0 $G (W 87 (w  7 
' 
	' 	 "w . 	G 	W ' 8g 7 ,7 "G "G ( "7 " @X Xv G )g )Xw $w (G ' $ G *G  w <W  7 	W 	W $ (G 7 w &g  G "  w    g "w "W $ $' (g   "' " & " (W   G  FG 4W *	g 		w 	* *Zw &	g 		 		7 	g 0g ,G * &W 4g * (C$w * r   