Skip to content

DNS error rcode type #785

Description

@sunfishcode

The DNS-error-payload type is currently defined as this:

  /// Defines the case payload type for `DNS-error` above:
  @since(version = 0.2.0)
  record DNS-error-payload {
    rcode: option<string>,
    info-code: option<u16>
  }

This has the rcode value be a string. However, DNS rcodes have standardized values that are defined in terms of u16 values.

With the current type being string, implementations appear to be using ad-hoc error messages which don't correspond to any standardized rcode value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-httpProposal: wasi-http

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions