Class HttpEndpoint
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
Implements
Properties
ConsumerPath
The consumer listen path (the route portion after host:port).
public string ConsumerPath { get; }
SchemePrefix
The scheme prefix for building URLs (http:// or https://).
public string SchemePrefix { get; }
Methods
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
HttpEndpoint(EndpointUri, HttpComponent, HttpEndpointOptions, string?, bool)
Creates an HTTP endpoint.