Start-HttpRoutes
0.1.0
Starts HTTP server with routing script blocks.
Route handler helper commands and variables:
Read-Content
Get-Headers
Get-Query
$Context [System.Net.HttpListenerContext]
$Request [System.Net.HttpListenerRequest]
$Response [System.Net.HttpListenerResponse]
In addition to the parameter Routes, or even instead of it, routes may
be defined as conventional fun
Route handler helper commands and variables:
Read-Content
Get-Headers
Get-Query
$Context [System.Net.HttpListenerContext]
$Request [System.Net.HttpListenerRequest]
$Response [System.Net.HttpListenerResponse]
In addition to the parameter Routes, or even instead of it, routes may
be defined as conventional fun
Starts HTTP server with routing script blocks.
Route handler helper commands and variables:
Read-Content
Get-Headers
Get-Query
$Context [System.Net.HttpListenerContext]
$Request [System.Net.HttpListenerRequest]
$Response [System.Net.HttpListenerResponse]
In addition to the parameter Routes, or even instead of it, routes may
be defined as conventional functions named like HttpRoute-*, providing
their route tags as CmdletBinding DefaultParameterSetName:
function HttpRoute-Show {
[CmdletBinding(DefaultParameterSetName = 'POST /show')] param()
...
}
Show more
Route handler helper commands and variables:
Read-Content
Get-Headers
Get-Query
$Context [System.Net.HttpListenerContext]
$Request [System.Net.HttpListenerRequest]
$Response [System.Net.HttpListenerResponse]
In addition to the parameter Routes, or even instead of it, routes may
be defined as conventional functions named like HttpRoute-*, providing
their route tags as CmdletBinding DefaultParameterSetName:
function HttpRoute-Show {
[CmdletBinding(DefaultParameterSetName = 'POST /show')] param()
...
}
Installation Options
Owners
Copyright
(c) Roman Kuzmin
Package Details
Author(s)
- Roman Kuzmin
Tags
Functions
Read-Content Get-Headers Get-Query Convert-NameValue __write_string
Dependencies
This script has no dependencies.
FileList
- Start-HttpRoutes.nuspec
- Start-HttpRoutes.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
0.1.0 (current version) | 6 | 9/11/2025 |
0.0.2 | 7 | 9/4/2025 |
0.0.1 | 6 | 9/3/2025 |