Class HttpEndpoint

Namespace
Kevlar.Extensions.Http
Assembly
Kevlar.Extensions.Http.dll

An alternate HTTP authority and its relative routing weight.

public sealed class HttpEndpoint
Inheritance
HttpEndpoint
Inherited Members

Constructors

HttpEndpoint(Uri, int)

Creates an endpoint. The URI must be absolute and weight positive.

public HttpEndpoint(Uri uri, int weight = 1)

Parameters

uri Uri
weight int

Properties

Uri

The authority used for routed attempts. The original path and query are preserved.

public Uri Uri { get; }

Property Value

Uri

Weight

The endpoint's relative weight.

public int Weight { get; }

Property Value

int