MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / query

Method query

21-async/mojifinder/bottle.py:1072–1081  ·  view source on GitHub ↗

The :attr:`query_string` parsed into a :class:`FormsDict`. These values are sometimes called "URL arguments" or "GET parameters", but not to be confused with "URL wildcards" as they are provided by the :class:`Router`.

(self)

Source from the content-addressed store, hash-verified

1070
1071 @DictProperty('environ', 'bottle.request.query', read_only=True)
1072 def query(self):
1073 ''' The :attr:`query_string` parsed into a :class:`FormsDict`. These
1074 values are sometimes called "URL arguments" or "GET parameters", but
1075 not to be confused with "URL wildcards" as they are provided by the
1076 :class:`Router`. '''
1077 get = self.environ['bottle.get'] = FormsDict()
1078 pairs = _parse_qsl(self.environ.get('QUERY_STRING', ''))
1079 for key, value in pairs:
1080 get[key] = value
1081 return get
1082
1083 @DictProperty('environ', 'bottle.request.forms', read_only=True)
1084 def forms(self):

Callers

nothing calls this directly

Calls 3

FormsDictClass · 0.85
_parse_qslFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected