Class NetworkRequestHandler
Allows a user to handle a network request, potentially modifying the request or providing a known response.
public class NetworkRequestHandler
- Inheritance
-
NetworkRequestHandler
- Inherited Members
Properties
RequestMatcher
Gets or sets a function that evaluates request data in an HttpRequestData object, and returns a value indicating whether the data matches the specified criteria.
public Func<HttpRequestData, bool> RequestMatcher { get; set; }
Property Value
RequestTransformer
Gets or sets a function that accepts an HttpRequestData object describing a network request to be sent, and returns a modified HttpRequestData object to use in the actual network request.
public Func<HttpRequestData, HttpRequestData> RequestTransformer { get; set; }
Property Value
ResponseSupplier
Gets or sets a function that accepts an HttpRequestData object describing a network request to be sent, and returns an HttpResponseData object as the response for the request, bypassing the actual network request.
public Func<HttpRequestData, HttpResponseData> ResponseSupplier { get; set; }