Class HttpComponent
HTTP/HTTPS component. Schemes: "http", "https".
Producer: HttpClient-based HTTP caller (GET/POST/PUT/DELETE/PATCH).
Consumer: Kestrel-based embedded HTTP server (webhook receiver).
URI format: http:host:port/path?method=POST&timeout=30000
URI format: https:api.example.com/orders?method=POST&throwOnError=true
URI shorthand: http:GET:/path (method prefix before the path, consumer only)
public class HttpComponent : ComponentBase, IComponent, IAsyncDisposable
Inheritance
Implements
Derived
Inherited Members
Properties
DefaultCors
Global CORS defaults applied to all HTTP consumers.
public HttpCorsOptions DefaultCors { get; }
Scheme
The URI scheme this component handles (e.g., "kafka", "rabbitmq").
public override string Scheme { get; }
ServerManager
Shared HTTP server manager for pooling Kestrel instances by (host, port).
public SharedHttpServerManager? ServerManager { get; set; }
Methods
CreateEndpoint(EndpointUri)
Creates an endpoint from a parsed URI.
public override IEndpoint CreateEndpoint(EndpointUri uri)
Constructors
HttpComponent()
Creates the http component. A parameterless constructor of its own: the assembly scan
HttpComponent(string)
Creates an HTTP component with the specified scheme.