Skip to content

DNS error rcode type #785

@sunfishcode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasi-httpIssues targeted for the `wasi-http` proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions