Class PathRequestMatcher
Default IPathRequestMatcher implementation.
Implements
Namespace: Tableau.Migration.Net.Simulation.Requests
Assembly: Tableau.Migration.dll
Syntax
public record PathRequestMatcher : IPathRequestMatcher, IRequestMatcher, IEquatable<IRequestMatcher>, IEquatable<PathRequestMatcher>
Constructors
PathRequestMatcher(HttpMethod, Uri)
Default IPathRequestMatcher implementation.
Declaration
public PathRequestMatcher(HttpMethod Method, Uri RequestUrl)
Parameters
Type | Name | Description |
---|---|---|
HttpMethod | Method | |
Uri | RequestUrl |
Properties
Method
Gets the HTTP method to match on.
Declaration
public HttpMethod Method { get; init; }
Property Value
Type | Description |
---|---|
HttpMethod |
RequestUrl
Gets the request URL to match on.
Declaration
public Uri RequestUrl { get; init; }
Property Value
Type | Description |
---|---|
Uri |
Methods
Equals(IRequestMatcher?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(IRequestMatcher? other)
Parameters
Type | Name | Description |
---|---|---|
IRequestMatcher | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Matches(HttpRequestMessage)
Determines whether the request matches this matcher's criteria.
Declaration
public bool Matches(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request | The request to attempt to match. |
Returns
Type | Description |
---|---|
bool | True if the request matches, otherwise false. |
ToString()
Returns a string which represents the object instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |