Options  {.no-collapse}

<div markdown class="option">  
<a id="dst" data-level="basic">__dst__</a> (cstr): location of destination resource  
</div>  
<div markdown class="option">  
<a id="port" data-level="basic">__port__</a> (uint, default: _0_): server port  
</div>  
<div markdown class="option">  
<a id="ifce">__ifce__</a> (str): default network interface to use  
</div>  
<div markdown class="option">  
<a id="rdirs" data-level="basic">__rdirs__</a> (strl): list of directories to expose for read  
</div>  
<div markdown class="option">  
<a id="wdir" data-level="basic">__wdir__</a> (str): directory to expose for write  
</div>  
<div markdown class="option">  
<a id="cert" data-level="basic">__cert__</a> (str): certificate file in PEM format to use for TLS mode  
</div>  
<div markdown class="option">  
<a id="pkey" data-level="basic">__pkey__</a> (str): private key file in PEM format to use for TLS mode  
</div>  
<div markdown class="option">  
<a id="block_size">__block_size__</a> (uint, default: _10000_): block size used to read and write TCP socket  
</div>  
<div markdown class="option">  
<a id="user_agent" data-level="basic">__user_agent__</a> (str, default: _$GUA_): user agent string, by default solved from GPAC preferences  
</div>  
<div markdown class="option">  
<a id="close">__close__</a> (bool, default: _false_): close HTTP connection after each request  
</div>  
<div markdown class="option">  
<a id="maxc">__maxc__</a> (uint, default: _100_): maximum number of connections, 0 is unlimited  
</div>  
<div markdown class="option">  
<a id="maxp">__maxp__</a> (uint, default: _6_): maximum number of connections for one peer (0 is unlimited)  
</div>  
<div markdown class="option">  
<a id="cache_control">__cache_control__</a> (str): specify the `Cache-Control` string to add (`none` disable cache control and ETag)  
</div>  
<div markdown class="option">  
<a id="hold">__hold__</a> (bool, default: _false_): hold packets until one client connects  
</div>  
<div markdown class="option">  
<a id="hmode">__hmode__</a> (enum, default: _default_): filter operation mode, ignored if [wdir](#wdir) is set  

- default: run in server mode  
- push: run in client mode using PUT or POST  
- source: use server as source filter on incoming PUT/POST  
</div>  
  
<div markdown class="option">  
<a id="timeout">__timeout__</a> (uint, default: _30_): timeout in seconds for persistent connections (0 disable timeout)  
</div>  
<div markdown class="option">  
<a id="ext">__ext__</a> (cstr): set extension for graph resolution, regardless of file extension  
</div>  
<div markdown class="option">  
<a id="mime">__mime__</a> (cstr): set mime type for graph resolution  
</div>  
<div markdown class="option">  
<a id="quit">__quit__</a> (bool, default: _false_): exit server once all input PIDs are done and client disconnects (for test purposes)  
</div>  
<div markdown class="option">  
<a id="post">__post__</a> (bool, default: _false_): use POST instead of PUT for uploading files  
</div>  
<div markdown class="option">  
<a id="dlist">__dlist__</a> (bool, default: _false_): enable HTML listing for GET requests on directories  
</div>  
<div markdown class="option">  
<a id="sutc">__sutc__</a> (bool, default: _false_): insert server UTC in response headers as `Server-UTC: VAL_IN_MS`  
</div>  
<div markdown class="option">  
<a id="cors">__cors__</a> (enum, default: _auto_): insert CORS header allowing all domains  

- off: disable CORS  
- on: enable CORS  
- auto: enable CORS when `Origin` is found in request  
</div>  
  
<div markdown class="option">  
<a id="reqlog">__reqlog__</a> (str): provide short log of the requests indicated in this option (comma separated list, `*` for all) regardless of HTTP log settings. Value `REC` logs file writing start/end. If prefix `-` is set, do not log request end  
</div>  
<div markdown class="option">  
<a id="ice">__ice__</a> (bool, default: _false_): insert ICE meta-data in response headers in sink mode  
</div>  
<div markdown class="option">  
<a id="max_client_errors">__max_client_errors__</a> (uint, default: _20_): force disconnection after specified number of consecutive errors from HTTTP 1.1 client (ignored in H/2 or when `close` is set)  
</div>  
<div markdown class="option">  
<a id="max_cache_segs">__max_cache_segs__</a> (sint, default: _5_): maximum number of segments cached per HAS quality (see filter help)  
</div>  
<div markdown class="option">  
<a id="reopen">__reopen__</a> (bool, default: _false_): in server mode with no read dir, accept requests on files already over but with input pid not in end of stream  
</div>  
<div markdown class="option">  
<a id="max_async_buf">__max_async_buf__</a> (uint, default: _100000_): maximum async buffer size in bytes when sharing output over multiple connection without file IO  
</div>  
<div markdown class="option">  
<a id="blockio">__blockio__</a> (bool, default: _false_): use blocking IO in push or source mode or in server mode with no read dir  
</div>  
<div markdown class="option">  
<a id="ka">__ka__</a> (bool, default: _true_): keep input alive if failure in push mode  
</div>  
<div markdown class="option">  
<a id="hdrs">__hdrs__</a> (strl): additional HTTP headers to inject, even values are names, odd values are values   
</div>  
<div markdown class="option">  
<a id="js">__js__</a> (str):   javascript logic for server  
</div>  
<div markdown class="option">  
<a id="zmax">__zmax__</a> (uint, default: _50000_): maximum uncompressed size allowed for gzip or deflate compression for text files (only enabled if client indicates it), 0 will disable compression  
</div>  
<div markdown class="option">  
<a id="cte">__cte__</a> (bool, default: _true_): use chunked transfer-encoding mode when possible  
</div>