Class HttpConsumer
HTTP consumer. Uses SharedHttpServerManager to register routes on a shared
Kestrel server instance per (host, port). Multiple consumers can serve
different routes on the same port.
Supports configurable bind address, CORS, allowed methods, HTTPS/TLS,
request body streaming, and InOut exchange patterns for synchronous responses.
public class HttpConsumer : IConsumer
Inheritance
Implements
Properties
BaseUrl
The base URL the server is listening on. Available after Start().
public string? BaseUrl { get; }
Endpoint
The endpoint this consumer is attached to (for diagnostics/logging).
public IEndpoint Endpoint { get; }
Methods
Constructors
HttpConsumer(HttpEndpoint, IProcessor, HttpEndpointOptions, SharedHttpServerManager)
Creates an HTTP consumer.