Skip to content

Expose SNI hostname via a feature #34525

Closed
@shirhatti

Description

@shirhatti

We currently do not expose the SNI hostname via a feature interface

// Used for event source, not part of any of the feature interfaces.
public string? HostName { get; set; }

namespace Microsoft.AspNetCore.Http.Features
{
    public interface ITlsHandshakeFeature
    {
+        string? HostName { get; }
    }
}

Given that it's already a property on the TlsConnectionFeature we can trivially expose it.

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implementedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-httpsysfeature-iisIncludes: IIS, ANCMfeature-kestrelhelp wantedUp for grabs. We would accept a PR to help resolve this issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions