An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

Pretendpoint
============

Pretendpoint icon

[![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/Pretendpoint)](https://www.powershellgallery.com/packages/Pretendpoint/)
[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/Pretendpoint)](https://www.powershellgallery.com/packages/Pretendpoint/)
[![Actions Status](https://github.com/brianary/Pretendpoint/workflows/.NET%20Core/badge.svg)](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`

![example usage of Pretendpoint](Pretendpoint.gif)

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`).