Lines Matching defs:port

38 import http.client  # only for the default HTTP port
385 >>> split_header_words(['foo="bar"; port="80,81"; discard, bar=baz'])
386 [[('foo', 'bar'), ('port', '80,81'), ('discard', None)], [('bar', 'baz')]]
483 "version", "port", "max-age")
632 # remove port, if present
661 port = host[i+1:]
663 int(port)
665 _debug("nonnumeric port: '%s'", port)
668 port = DEFAULT_HTTP_PORT
669 return port
756 Note that the port may be present in the headers, but unspecified ("Port"
757 rather than"Port=80", for example); if this is the case, port is None.
762 port, port_specified,
776 if port is None and port_specified is True:
777 raise ValueError("if port is None, port_specified must be false")
782 self.port = port
817 if self.port is None: p = ""
818 else: p = ":"+self.port
829 "port", "port_specified",
960 for n in "version", "verifiability", "name", "path", "domain", "port":
1082 for p in cookie.port.split(","):
1086 _debug(" bad port %s (not numeric)", p)
1091 _debug(" request port (%s) not found in %s",
1092 req_port, cookie.port)
1107 for n in "version", "verifiability", "secure", "expires", "port", "domain":
1148 if cookie.port:
1152 for p in cookie.port.split(","):
1156 _debug(" request port %s does not match cookie port %s",
1157 req_port, cookie.port)
1348 if cookie.port is not None:
1351 p = p + ('="%s"' % cookie.port)
1398 domain, path and port) and rest is a dictionary containing the rest of
1407 "domain", "path", "port",
1434 # (like "discard", rather than "port=80")
1471 k not in ("port", "comment", "commenturl")):
1493 port = standard.get("port", Absent)
1537 # set default port
1539 if port is not Absent:
1540 if port is None:
1541 # Port attr present, but has no value: default to request port.
1542 # Cookie should then only be sent back on that port.
1543 port = request_port(request)
1546 port = re.sub(r"\s+", "", port)
1548 # No port attr present. Cookie can be sent back on any port.
1549 port = None
1568 port, port_specified,
1840 if cookie.port is not None: h.append(("port", cookie.port))
1916 "port", "path", "domain",
1960 h("port"), h("port_spec"),
2001 In particular, the cookie version and port number information is lost,