Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

README.md

Outline

Dev Proxy Abstractions

NuGet Version NuGet Downloads

Abstractions for building custom Dev Proxy plugins. Dev Proxy is an API simulator that helps you effortlessly test your app beyond the happy path.

What This Package Does

This package provides the interfaces, base classes, and models needed to build custom Dev Proxy plugins. Use it when you want to extend Dev Proxy with your own functionality.

Usage

Create a new class library project and add a reference to this package:

dotnet add package DevProxy.Abstractions

Then, implement the IPlugin interface or inherit from BasePlugin:

using DevProxy.Abstractions.Plugins;
using DevProxy.Abstractions.Proxy;
using Microsoft.Extensions.Logging;

public class MyPlugin(
    ILogger logger,
    ISet<UrlToWatch> urlsToWatch) : BasePlugin(logger, urlsToWatch)
{
    public override string Name => nameof(MyPlugin);

    public override async Task BeforeRequestAsync(
        ProxyRequestArgs e,
        CancellationToken cancellationToken)
    {
        // Your custom logic here
    }
}

For more information, see the Dev Proxy documentation.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.