HttpRequestMock.Setup(MockHttpMessageHandler) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
In the constructor of MockHttpRequestMiddleware, this function will be called to setup a global handler.
public abstract void Setup (RichardSzalay.MockHttp.MockHttpMessageHandler handler);
abstract member Setup : RichardSzalay.MockHttp.MockHttpMessageHandler -> unit
Public MustOverride Sub Setup (handler As MockHttpMessageHandler)
Parameters
- handler
- RichardSzalay.MockHttp.MockHttpMessageHandler
The global handler.