Sisk

Method

MitmproxyHelper.UseMitmproxy

Namespace
Sisk.Helpers.mitmproxy
Assembly
Sisk.Helpers.mitmproxy.dll

UseMitmproxy(HttpServerHostContextBuilder) #

Configures the specified HttpServerHostContextBuilder to use mitmproxy with a random proxy port.

C#
public static HttpServerHostContextBuilder UseMitmproxy(this HttpServerHostContextBuilder builder)

Parameters #

builder HttpServerHostContextBuilder

The HttpServerHostContextBuilder instance to configure.

Returns #

HttpServerHostContextBuilder

The updated HttpServerHostContextBuilder instance.

UseMitmproxy(HttpServerHostContextBuilder, ushort, bool, Action<ChildProcessStartInfo>?) #

Configures the specified HttpServerHostContextBuilder to use mitmproxy with the specified options.

C#
public static HttpServerHostContextBuilder UseMitmproxy(this HttpServerHostContextBuilder builder, ushort proxyPort = 0, bool silent = false, Action<ChildProcessStartInfo>? setupAction = null)

Parameters #

builder HttpServerHostContextBuilder

The HttpServerHostContextBuilder instance to configure.

proxyPort ushort

The port on which the mitmproxy will listen.

silent bool

Indicates whether the mitmproxy should run in silent mode. Default is false.

setupAction Action<ChildProcessStartInfo>?

An optional action to configure the child process start information.

Returns #

HttpServerHostContextBuilder

The updated HttpServerHostContextBuilder instance.

Type to search the documentation and the API reference.