]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/cookiejar: document format of domain in PublicSuffix
authorVolker Dobler <dr.volker.dobler@gmail.com>
Mon, 6 Jan 2014 18:00:20 +0000 (10:00 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 Jan 2014 18:00:20 +0000 (10:00 -0800)
Document what values a PublicSuffixList must accept as
a domain in a call to PublicSuffix.

R=bradfitz, nigeltao
CC=golang-codereviews
https://golang.org/cl/47560044

src/pkg/net/http/cookiejar/jar.go

index 389ab58e4182f5d84c5d0fae15d974748e9cf4ee..82f18a178487cc89f5a977cf68ac736aa0a619d2 100644 (file)
@@ -34,9 +34,9 @@ import (
 type PublicSuffixList interface {
        // PublicSuffix returns the public suffix of domain.
        //
-       // TODO: specify which of the caller and callee is responsible for IP
-       // addresses, for leading and trailing dots, for case sensitivity, and
-       // for IDN/Punycode.
+       // Domain is a lowercase punycoded domain name (not an IP address)
+       // without leading or trailing dots. The returned value is in the
+       // same form.
        PublicSuffix(domain string) string
 
        // String returns a description of the source of this public suffix