// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net;
namespace Microsoft.AspNetCore.Http.Features
{
///
/// Information regarding the TCP/IP connection carrying the request.
///
public interface IHttpConnectionFeature
{
///
/// The unique identifier for the connection the request was received on. This is primarily for diagnostic purposes.
///
string ConnectionId { get; set; }
///
/// The IPAddress of the client making the request. Note this may be for a proxy rather than the end user.
///
IPAddress RemoteIpAddress { get; set; }
///
/// The local IPAddress on which the request was received.
///
IPAddress LocalIpAddress { get; set; }
///
/// The remote port of the client making the request.
///
int RemotePort { get; set; }
///
/// The local port on which the request was received.
///
int LocalPort { get; set; }
}
}