Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add powershell-http template #1
This is an initial powershell-http template
Errors are returned with a 500 status code and the
Signed-off-by: Burton Rheutan firstname.lastname@example.org
Huge thanks to @Jarzamendia for the help in Slack!
I've done a quick local test to ensure that the function still functions, the properties are available, and the response is being set correctly. Please let me know what you think and if you come across any issues/errors.
referenced this pull request
Jan 5, 2019
left a comment
I tried out the function on local nomad, swarm providers and it works as expected.
The embedded http server options (Kestrel in this case) could be tuned for some specific scenarios, but I think it's good enough as a basic template using powershell, Kestrel and of-watchdog.
@alexellis Updated to use a function syntax in the handler.
Also, I ran my loop script on this template and I was surprised at how fast it was responding (even on local Docker Swarm). This is calling the function 10,000 times in a loop in bash:
Also, here's the output from