Process local http request (#599)

* Local http?

* option utils

* Fix for hanging web app

* Lint fix

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2025-05-05 17:21:12 -04:00
1 parent fae875845a
commit f3f9327c1c
8 files changed
+123 -11

No files matched your search

@@ -0,0 +1,25 @@
namespace OptionUtils
function Get(opts as object, key as string, passthroughFunction = invalid as dynamic) as dynamic
if opts = invalid
if passthroughFunction = invalid
return invalid
end if
return passthroughFunction(invalid)
end if
value = opts[key]
if value = invalid
if passthroughFunction = invalid
return invalid
end if
return passthroughFunction(invalid)
end if
if passthroughFunction <> invalid
return passthroughFunction(value)
end if
return value
end function
end namespace