rust-web-server 16.1.0

Collection of utility functions used to build Rust Web and TLS Server. Can be useful while developing HTTP related functionality
Documentation
export RWS_CONFIG_IP="127.0.0.1"
export RWS_CONFIG_PORT="7887"
export RWS_CONFIG_THREAD_COUNT="100"

#  CROSS ORIGIN RESOURCE SHARING
# true will allow all CORS requests and you can omit configuring cors properties below
export RWS_CONFIG_CORS_ALLOW_ALL="false"

# list of allowed origins, this setting won't apply if cors allow_all set to true
export RWS_CONFIG_CORS_ALLOW_ORIGINS="https://foo.example,https://bar.example"

# if set to true, will allow to transmit credentials via CORS requests, this setting won't apply if cors allow_all set to true
export RWS_CONFIG_CORS_ALLOW_CREDENTIALS="true"

# list of allowed request headers, in lowercase, this setting won't apply if cors allow_all set to true
export RWS_CONFIG_CORS_ALLOW_HEADERS="content-type,x-custom-header"

# list of allowed methods, this setting won't apply if cors allow_all set to true
export RWS_CONFIG_CORS_ALLOW_METHODS="GET,POST,PUT,DELETE"

# list of allowed response headers, in lowercase, this setting won't apply if cors allow_all set to true
export RWS_CONFIG_CORS_EXPOSE_HEADERS="content-type,x-custom-header"

# in seconds, time to cache in browser CORS information, 86400s = 1 day; this setting won't apply if cors allow_all set to true
export RWS_CONFIG_CORS_MAX_AGE="86400"