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

string

ContentType

Incoming Content-Type header, lower-cased. Used by matchers to distinguish gRPC (application/grpc*) from REST.

public string? ContentType { get; init; }

Property Value

string

Headers

public Dictionary<string, string> Headers { get; init; }

Property Value

Dictionary<string, string>

HttpMethod

public required string HttpMethod { get; init; }

Property Value

string

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

bool

Path

public required string Path { get; init; }

Property Value

string

Protocol

public required string Protocol { get; init; }

Property Value

string

Query

public string? Query { get; init; }

Property Value

string