https://github.com/brianary/pretendpoint
Pretend Endpoint, the disposable web server. A set of PowerShell cmdlets to create an HTTP test server/endpoint for inspecting or debugging client requests.
https://github.com/brianary/pretendpoint
endpoint fsharp network-analysis powershell powershell-module testing
Last synced: 3 months ago
JSON representation
Pretend Endpoint, the disposable web server. A set of PowerShell cmdlets to create an HTTP test server/endpoint for inspecting or debugging client requests.
- Host: GitHub
- URL: https://github.com/brianary/pretendpoint
- Owner: brianary
- License: mit
- Created: 2020-01-11T06:03:49.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-21T19:02:25.000Z (7 months ago)
- Last Synced: 2025-06-11T23:09:55.021Z (4 months ago)
- Topics: endpoint, fsharp, network-analysis, powershell, powershell-module, testing
- Language: F#
- Homepage: https://www.powershellgallery.com/packages/Pretendpoint/
- Size: 509 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pretendpoint
============
[](https://www.powershellgallery.com/packages/Pretendpoint/)
[](https://www.powershellgallery.com/packages/Pretendpoint/)
[](https://github.com/brianary/Pretendpoint/actions)Pretend Endpoint, the disposable web server.
A set of PowerShell cmdlets to create an HTTP test server/endpoint for inspecting or debugging client requests.To install: `Install-Module Pretendpoint`

Cmdlets
-------Documentation is automatically generated using [platyPS](https://github.com/PowerShell/platyPS) (`.\doc.cmd`).
- [Get-WebRequestBody](docs/Get-WebRequestBody.md) —
Starts an HTTP listener to receive a single request, whose body is returned, supporting static or dynamic respnoses.
- [Read-WebRequest](docs/Read-WebRequest.md) —
Parses an HTTP listener request.
- [Receive-HttpContext](docs/Receive-HttpContext.md) —
Listens for an HTTP request and returns an HTTP request & response.
- [Restart-HttpListener](docs/Restart-HttpListener.md) —
Stops and restarts an HTTP listener.
- [Start-HttpListener](docs/Start-HttpListener.md) —
Ports on the localhost to bind to.
- [Stop-HttpListener](docs/Stop-HttpListener.md) —
Closes an HTTP listener.
- [Suspend-HttpListener](docs/Suspend-HttpListener.md) —
Pauses an HTTP listener.
- [Write-WebResponse](docs/Write-WebResponse.md) —
Sends a text or binary response body to the HTTP listener client.Tests
-----Tests are written for [Pester](https://github.com/Pester/Pester) (`.\test.cmd`).