Skip to content

Commit

Permalink
Add notes about SVCB draft changes to SVCB-related API (#1364)
Browse files Browse the repository at this point in the history
* Add notes about SVCB draft changes to SVCB-related API

* Decrease number of warnings, rephrase
  • Loading branch information
ainar-g committed Apr 14, 2022
1 parent 08c2616 commit 656b740
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions svcb.go
Expand Up @@ -210,6 +210,10 @@ func makeSVCBKeyValue(key SVCBKey) SVCBKeyValue {
}

// SVCB RR. See RFC xxxx (https://tools.ietf.org/html/draft-ietf-dnsop-svcb-https-08).
//
// NOTE: The HTTPS/SVCB RFCs are in the draft stage.
// The API, including constants and types related to SVCBKeyValues, may
// change in future versions in accordance with the latest drafts.
type SVCB struct {
Hdr RR_Header
Priority uint16 // If zero, Value must be empty or discarded by the user of this library
Expand All @@ -219,6 +223,10 @@ type SVCB struct {

// HTTPS RR. Everything valid for SVCB applies to HTTPS as well.
// Except that the HTTPS record is intended for use with the HTTP and HTTPS protocols.
//
// NOTE: The HTTPS/SVCB RFCs are in the draft stage.
// The API, including constants and types related to SVCBKeyValues, may
// change in future versions in accordance with the latest drafts.
type HTTPS struct {
SVCB
}
Expand Down

0 comments on commit 656b740

Please sign in to comment.