Draft: draft-ietf-doh-dns-over-https-latest

Commentary: closes issue 
 I could go either way on body . You 're right that the actual mime type is a bit of a problem .. I 'll try it with a ct name argument without a value having the default meaning . I think that 's explicit enough , while I do n't really like totally implicit things like the absence of ct ( what if you mis - spell it ? ) 
 Actually what was the reasoning behind passing Content - Type as a query parameter instead of as the Content - Type header ? Presumably any DNS API server must be able to parse headers ... 
 Content - Type as a header refers to the message payload which is n't what we 're trying to describe here .. ( its used on POST , where it matches .. ) 
 referring back to pull , you wrote this : " I could go either way on body . You 're right that the actual mime type is a bit of a problem .. I 'll try it with a name argument without a value having the default meaning . I think that 's explicit enough , while I do n't really like totally implicit things like the absence of ( what if you mis - spell it ? ) " I 'm fine with having now named , but I 'm concerned by the use of a the query parameter without a value at all ... Whilst this is probably too unwieldy : /dns - query?ct = application / dns - udpwireformat&dns = AAABAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB the use of alone just /dns - query?ct&dns = AAABAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB Yes , I know it 's valid according to RFC 3986 , but I 'm wondering whether , since it 's very unlikely that a JSON format would be passed using a GET , we could treat the absence of as implying ? Alternatively we could allow a couple of special values for the parameter : - implies that the format is - implies that the format is 
 There 's a potential different approach here , use a specific parameter name for each type of query . That is , has a value that is json= ... application / dns - query+json ` and so on . That way you can have multiple formats on the request ( for backwards compatibility ) . The only downside is that the backwardly compatible request will cause a hit on cache coherency , so the server might want to redirect to a canonical URL if it is concerned that the client wo n't consistently include both formats . ( That redirect can be followed by a push if you are concerned about round trips . ) 
 This feels cache - unfriendly to me . What is the problem with the default for ct ? 
 It 's a tiny hit to cache unfriendliness ( you do n't get coherency between clients that inconsistently construct requests , or you have to redirect - and - push ) , agreed . But it gets you the agility you wanted . 
 Oh , forgot to point out that this tends to be self - correcting . There are usually only a few different configurations of clients , so while those that support two request formats wo n't necessarily share cache hits with those that only support one , those two populations will probably happily share a cache . 
 So to be clear , you 'd allow requests like any of the following : Personally I like this - clear and neat . Maybe I 'd change the parameter to ( so the two options are and , but that 's just me . It removes the necessity to specify the type separately and it 's ' neat ' . Plus extensible for future formats . 
 Yeah . Pick whatever colour you like for the shed , I 'm not planning to live in it . 
 describes a method that is more flexible again in . A better solution in my opinion ( if you set the second half of that issue aside for the moment ) . 
 I think the color of the shed is fine for this document , and if discovery would like to do some fancy templating to enable rainbows that 's fine for that separate effort . 
 could be much shorter . Bytes in requests matter and these are going to be used in critical conditions ( early in the connection where the number of requests you can make depend on how big they are ) . These wo n't compress well enough with HPACK to get any real benefit . A short name would be an improvement . A default value for would be even better . 
 Could go the alt - svc approach ( ) and use two - letter combos , e.g. " ct " for , but really there out to be a standard for that approach ... 
 I like the change to ' ct ' for Content - Type , but I think ' body ' is important enough where reducing it by only two bytes to ' rb ' is n't worth the change . Perhaps there could be an abbreviated ' ct ' value - e.g. ' ct = du ' ? Or , if ' ct ' is not specified , then ' application / dns - udpwireformat ' iMUST be assumed by the DNS server ?
Paragraph (version A):
When using the POST method, the DNS query is included as the message
body of the HTTP request and the Content-Type request header
indicates the media type of the message.  POST-ed requests are
smaller than their GET equivalents.
Paragraph (version A):
When using the GET method, the URI path MUST contain a query
parameter of the form content-type=TTT and another of the form
body=BBBB, where "TTT" is the media type of the format used for the
body parameter, and "BBB" is the content of the body encoded with
base64url RFC4648.  Using the GET method is friendlier to many HTTP
cache implementations.
Paragraph (version B):
When using the POST method the DNS query is included as the message
body of the HTTP request and the Content-Type request header
indicates the media type of the message.  POST-ed requests are
smaller than their GET equivalents.
Paragraph (version B):
When using the GET method the URI path MUST contain a query parameter
with the name of ct and a value indicating the media-format used for
the body parameter.  The value may either be an explicit media type
(e.g. ct=application/dns-udpwireformat&body=...) or it may be empty.
An empty value indicates the default application/dns-udpwireformat
type (e.g. ct&body=...).
Paragraph (version B):
When using the GET method the URI path MUST contain a query parameter
with the name of body.  The value of the parameter is the content of
the request encoded with base64url RFC4648.  Using the GET method is
friendlier to many HTTP cache implementations.