Skip to content

ServiceInfo with empty alpn_http_version is invalid #106

Description

@mxinden

For "no-default-alpn", the presentation and wire-format values MUST be empty. When "no-default-alpn" is specified in an RR, "alpn" must also be specified in order for the RR to be "self-consistent" (Section 2.4.3).

https://www.rfc-editor.org/rfc/rfc9460.html#section-7.1.1

Make this invalid state impossible through the Rust type system.

pub alpn_http_versions: HashSet<HttpVersion>,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions