Lines Matching defs:port
37 import httplib # only for the default HTTP port
363 >>> split_header_words(['foo="bar"; port="80,81"; discard, bar=baz'])
364 [[('foo', 'bar'), ('port', '80,81'), ('discard', None)], [('bar', 'baz')]]
461 "version", "port", "max-age")
594 # remove port, if present
623 port = host[i+1:]
625 int(port)
627 _debug("nonnumeric port: '%s'", port)
630 port = DEFAULT_HTTP_PORT
631 return port
720 Note that the port may be present in the headers, but unspecified ("Port"
721 rather than"Port=80", for example); if this is the case, port is None.
726 port, port_specified,
740 if port is None and port_specified is True:
741 raise ValueError("if port is None, port_specified must be false")
746 self.port = port
781 if self.port is None: p = ""
782 else: p = ":"+self.port
793 "port", "port_specified",
922 for n in "version", "verifiability", "name", "path", "domain", "port":
1043 for p in cookie.port.split(","):
1047 _debug(" bad port %s (not numeric)", p)
1052 _debug(" request port (%s) not found in %s",
1053 req_port, cookie.port)
1068 for n in "version", "verifiability", "secure", "expires", "port", "domain":
1109 if cookie.port:
1113 for p in cookie.port.split(","):
1117 _debug(" request port %s does not match cookie port %s",
1118 req_port, cookie.port)
1304 if cookie.port is not None:
1305 p = "$Port"
1307 p = p + ('="%s"' % cookie.port)
1354 domain, path and port) and rest is a dictionary containing the rest of
1363 "domain", "path", "port",
1390 # (like "discard", rather than "port=80")
1427 k not in ("port", "comment", "commenturl")):
1449 port = standard.get("port", Absent)
1493 # set default port
1495 if port is not Absent:
1496 if port is None:
1497 # Port attr present, but has no value: default to request port.
1498 # Cookie should then only be sent back on that port.
1499 port = request_port(request)
1502 port = re.sub(r"\s+", "", port)
1504 # No port attr present. Cookie can be sent back on any port.
1505 port = None
1524 port, port_specified,