Skip to content

StubHttp() constructor

Defined in

Type: StubHttp Namespace: Refit.Testing Assembly: Refit.Testing.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481, net471

Overloads

  • 1. public StubHttp()
  • 2. public StubHttp(NetworkBehavior behavior)

1. Overload

public StubHttp()

View source

Summary: Initializes a new instance of the StubHttp class with an empty route table.

2. Overload

public StubHttp(NetworkBehavior behavior)

View source

Summary: Initializes a new instance of the StubHttp class with network-fault simulation.

Parameters

NameTypeDescription
behavior[NetworkBehavior](#The network behavior applied to every matched request.