Pretend Endpoint, the disposable web server. A set of PowerShell cmdlets to create an HTTP test server/endpoint for inspecting or debugging client requests.
Documentation is automatically generated using platyPS.
- Get-WebRequestBody — Starts an HTTP listener to receive a single request, whose body is returned, supporting static or dynamic respnoses.
- Read-WebRequest — Parses an HTTP listener request.
- Receive-HttpContext — Listens for an HTTP request and returns an HTTP request & response.
- Restart-HttpListener — Stops and restarts an HTTP listener.
- Start-HttpListener — Ports on the localhost to bind to.
- Stop-HttpListener — Closes an HTTP listener.
- Suspend-HttpListener — Pauses an HTTP listener.
- Write-WebResponse — Sends a text or binary response body to the HTTP listener client.
Tests are written for Pester.
To run the tests, run dotnet build -t:pester
.