Add notes about SVCB draft changes to SVCB-related API (#1364)

* Add notes about SVCB draft changes to SVCB-related API

* Decrease number of warnings, rephrase
This commit is contained in:
Ainar Garipov 2022-04-14 21:36:11 +03:00 committed by GitHub
parent 08c2616301
commit 656b7409ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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
@ -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
}