Class MockRequest
- Namespace
- Kuestenlogik.Bowire.Mock.Matchers
- Assembly
- Kuestenlogik.Bowire.Mock.dll
The bits of an incoming wire request the matcher can reason about. Populated by MockHandler (embedded mode) or by the standalone MockServer listener.
public sealed class MockRequest
- Inheritance
-
MockRequest
- Inherited Members
Constructors
MockRequest()
public MockRequest()
Properties
Body
public string? Body { get; init; }
Property Value
ContentType
Incoming Content-Type header, lower-cased. Used by matchers
to distinguish gRPC (application/grpc*) from REST.
public string? ContentType { get; init; }
Property Value
Headers
public Dictionary<string, string> Headers { get; init; }
Property Value
HttpMethod
public required string HttpMethod { get; init; }
Property Value
IsGrpc
true when the request carries an application/grpc-family
content type. Cached on MockRequest construction so
matchers don't re-parse the header on every candidate step.
public bool IsGrpc { get; }
Property Value
Path
public required string Path { get; init; }
Property Value
Protocol
public required string Protocol { get; init; }
Property Value
Query
public string? Query { get; init; }