@newstudios/http-utils

http common lib

Usage no npm install needed!

<script type="module">
  import newstudiosHttpUtils from 'https://cdn.skypack.dev/@newstudios/http-utils';
</script>

README

usage

# whether the http server is behind a proxy, default is false
HTTP_BEHIND_PROXY = true

# http forwarded ip header name, default is 'x-forwaded-for'
HTTP_FORWARDED_IP_HEADERS = x-forwarded-for

# http forwaded ips max count, default is 0
HTTP_MAX_IPS_COUNT = 0