GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — dev-proxy/DevProxy.Abstractions at main · dotnet/dev-proxy

Expand file tree

/

DevProxy.Abstractions

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

DevProxy.Abstractions

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Data
Data
 
 
Extensions
Extensions
 
 
LanguageModel
LanguageModel
 
 
Models
Models
 
 
OpenTelemetry
OpenTelemetry
 
 
Plugins
Plugins
 
 
Prompty
Prompty
 
 
Proxy
Proxy
 
 
Utils
Utils
 
 
DevProxy.Abstractions.csproj
DevProxy.Abstractions.csproj
 
 
README.md
README.md
 
 
packages.lock.json
packages.lock.json
 
 

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.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.