Class HttpEndpoint

Namespace: redb.Route.Http
Assembly: redb.Route.Http.dll

HTTP endpoint. Creates either a producer (HTTP client) or consumer (Kestrel server).
The path part of the URI is: host[:port]/path
For producer: resolves to target URL.
For consumer: path is the route to listen on.

public class HttpEndpoint : EndpointBase<HttpEndpointOptions>, IEndpoint, IEndpointStatistics

Inheritance

Object→HttpEndpointOptions}→HttpEndpoint

Implements

Properties

ConsumerPath

The consumer listen path (the route portion after host:port).

public string ConsumerPath { get; }

IsHttps

Whether this endpoint uses HTTPS.

public bool IsHttps { get; }

SchemePrefix

The scheme prefix for building URLs (http:// or https://).

public string SchemePrefix { get; }

Methods

BuildProducerUrl()

Build the full target URL for the producer.

public string BuildProducerUrl()

CreateConsumer(IProcessor)

Creates a consumer for receiving messages from this endpoint.

public override IConsumer CreateConsumer(IProcessor processor)

CreateProducer()

Creates a producer for sending messages to this endpoint.

public override IProducer CreateProducer()

Constructors