Commit eb93f862 authored by Volker Dobler's avatar Volker Dobler Committed by Brad Fitzpatrick

net/http/cookiejar: document format of domain in PublicSuffix

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
parent aeeda707
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment