flancy icon indicating copy to clipboard operation
flancy copied to clipboard

A micro web framework for Windows PowerShell

Results 18 flancy issues
Sort by recently updated
recently updated
newest added

I was told this following code would be EASY! import-module flancy $url = "http://localhost:8001" new-flancy -url $url -webschema @( Get '/' { "Welcome to Flancy!" } Get '/processes' { $processes...

Is it possible to set content-type on response? I tried $Response.ContentType = "application/json" or $Response.Headers["content-type"] = "application/json" thanks

this is super annoying everytime I try to use New-Flancy ``` The process cannot access the file because it is being used by another process At C:\Users\dotps1\Documents\WindowsPowerShell\Modules\flancy\flancy.psm1:450 char:9 + $flancy.start()...

This may not be possible but it would be nice if variables could be passed in the -WebSchema parameter of New-Flancy: ``` PowerShell $thing = "SomeText" New-Flancy -WebSchema { Get...

In the typedefinition of flancy.flancy, need to see if we can use the host's runspace rather than calling powershell.create. If I can find the variable in my session, I should...

enhancement

I did only a quick search for examples of setting up NancyFx to achieve something like `python simplehttpserver`. Also, can flancy execute a ps1 on disk? I probably missed it...

Below wouldn't be too difficult to include https://github.com/SimpleAuthentication/SimpleAuthentication/wiki/NancyFX-Manual-Setup I'm tempted to dig through the above and see if we can just do it on the powershell side, but why reinvent?

I haven't even looked at what is possible. This will likely flush out into a few issues.

enhancement

Perhaps ContentPath ContentDir? I sort of like Path because it feels more PowerShell. However, if people feel strongly about this change, I don't mind either way. Submitted by @beatcracker in...

Repro script: ``` Start-Job -Name 'Flancy' -ScriptBlock { Import-Module -Name 'Flancy' -ErrorAction Stop New-Flancy -WebSchema @{ Method = 'Get' Path= '/' Script = {'Hello, world!'} } } Wait-Job -Name 'Flancy'...