| Copyright | (c) Viktor Dukhovni 2026 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | ietf-dane@dukhovni.org |
| Stability | unstable |
| Safe Haskell | None |
| Language | GHC2024 |
Net.DNSBase.EDNS.Option.Opaque
Description
OpaqueOption is the carrier the decoder falls back to when it
sees an EDNS option code that no
KnownEdnsOption instance in the resolver's
option map handles. The option's contents are left as raw bytes
and presented in the generic RFC
3597 form, so
applications can still inspect and round-trip the value. The
option code is carried as a type-level natural, so
OpaqueOption values with different codes have distinct types.
Synopsis
- data OpaqueOption (n :: Nat) = OpaqueOption ShortByteString
- opaqueEdnsOption :: Word16 -> ShortByteString -> EdnsOption
Documentation
data OpaqueOption (n :: Nat) Source #
Unrecognized EDNS Option whose contents are treated as an opaque octet-string and are left unparsed. The OPTION-CODE is encoded as a type-level natural, so opaque options with different option code values are of different types.
Constructors
| OpaqueOption ShortByteString |
Instances
opaqueEdnsOption :: Word16 -> ShortByteString -> EdnsOption Source #
Create opaque option from its opcode and Bytes16 value