 Tornado 6.0 Documentation
respond with a 400 (Bad Request) raise HTTPInputError("Malformed HTTP request line") if not re.match(r"^HTTP/1\.[0-9]$", version): raise HTTPInputError( "Malformed HTTP version in ResponseStartLine(version='HTTP/1.1', code=200, reason='OK') """ line = native_str(line) match = re.match("(HTTP/1.[0-9]) ([0-9]+) ([^\r]*)", line) if not match: raise HTTPInputError("Error parsing Returned ``port`` will be ``None`` if not present. .. versionadded:: 4.1 """ match = re.match(r"^(.+):(\d+)$", netloc) if match: host = match.group(1) port = int(match.group(2))0 码力 | 869 页 | 692.83 KB | 1 年前3 Tornado 6.0 Documentation
respond with a 400 (Bad Request) raise HTTPInputError("Malformed HTTP request line") if not re.match(r"^HTTP/1\.[0-9]$", version): raise HTTPInputError( "Malformed HTTP version in ResponseStartLine(version='HTTP/1.1', code=200, reason='OK') """ line = native_str(line) match = re.match("(HTTP/1.[0-9]) ([0-9]+) ([^\r]*)", line) if not match: raise HTTPInputError("Error parsing Returned ``port`` will be ``None`` if not present. .. versionadded:: 4.1 """ match = re.match(r"^(.+):(\d+)$", netloc) if match: host = match.group(1) port = int(match.group(2))0 码力 | 869 页 | 692.83 KB | 1 年前3
 Falcon v1.0.0 Documentationfields = re.findall('{([^}]*)}', uri_template) for field in fields: is_identifier = re.match('[A-Za-z_][A-Za-z0-9_]+$', field) if not is_identifier or field in keyword.kwlist: cookies.load(value) if sys.version_info < (2, 7): match = re.match('([^=]+)=', value) assert match cookie_name = match.group(1)0 码力 | 312 页 | 368.58 KB | 1 年前3 Falcon v1.0.0 Documentationfields = re.findall('{([^}]*)}', uri_template) for field in fields: is_identifier = re.match('[A-Za-z_][A-Za-z0-9_]+$', field) if not is_identifier or field in keyword.kwlist: cookies.load(value) if sys.version_info < (2, 7): match = re.match('([^=]+)=', value) assert match cookie_name = match.group(1)0 码力 | 312 页 | 368.58 KB | 1 年前3
 Tornado 6.1 Documentation
path.endswith(".csv"): continue locale, extension = path.split(".") if not re.match("[a-z]+(_[A-Z]+)?$", locale): gen_log.error( "Unrecognized locale %r (path: if port is None: port = 443 if self.parsed.scheme == "https" else 80 if re.match(r"^\[.*\]$", host): # raw ipv6 addresses in urls are enclosed in brackets0 码力 | 931 页 | 708.03 KB | 1 年前3 Tornado 6.1 Documentation
path.endswith(".csv"): continue locale, extension = path.split(".") if not re.match("[a-z]+(_[A-Z]+)?$", locale): gen_log.error( "Unrecognized locale %r (path: if port is None: port = 443 if self.parsed.scheme == "https" else 80 if re.match(r"^\[.*\]$", host): # raw ipv6 addresses in urls are enclosed in brackets0 码力 | 931 页 | 708.03 KB | 1 年前3
 Celery 3.0 Documentationaction to the arg strings nargs_pattern = self._get_nargs_pattern(action) match = _re.match(nargs_pattern, arg_strings_pattern) # raise an exception if we weren't able to find a match _get_nargs_pattern(action) for action in actions_slice]) match = _re.match(pattern, arg_strings_pattern) if match is not None: result.extend([len(string)0 码力 | 2110 页 | 2.23 MB | 1 年前3 Celery 3.0 Documentationaction to the arg strings nargs_pattern = self._get_nargs_pattern(action) match = _re.match(nargs_pattern, arg_strings_pattern) # raise an exception if we weren't able to find a match _get_nargs_pattern(action) for action in actions_slice]) match = _re.match(pattern, arg_strings_pattern) if match is not None: result.extend([len(string)0 码力 | 2110 页 | 2.23 MB | 1 年前3
 Celery v4.0.0 Documentationaction to the arg strings nargs_pattern = self._get_nargs_pattern(action) match = _re.match(nargs_pattern, arg_strings_pattern) # raise an exception if we weren't able to find a match _get_nargs_pattern(action) for action in actions_slice]) match = _re.match(pattern, arg_strings_pattern) if match is not None: result.extend([len(string)0 码力 | 2106 页 | 2.23 MB | 1 年前3 Celery v4.0.0 Documentationaction to the arg strings nargs_pattern = self._get_nargs_pattern(action) match = _re.match(nargs_pattern, arg_strings_pattern) # raise an exception if we weren't able to find a match _get_nargs_pattern(action) for action in actions_slice]) match = _re.match(pattern, arg_strings_pattern) if match is not None: result.extend([len(string)0 码力 | 2106 页 | 2.23 MB | 1 年前3
共 5 条
- 1














