| 173 | | ``__getitem__(key)`` |
|---|
| 174 | | Returns the GET/POST value for the given key, checking POST first, then |
|---|
| 175 | | GET. Raises ``KeyError`` if the key doesn't exist. |
|---|
| 176 | | |
|---|
| 177 | | This lets you use dictionary-accessing syntax on an ``HttpRequest`` |
|---|
| 178 | | instance. Example: ``request["foo"]`` would return ``True`` if either |
|---|
| 179 | | ``request.POST`` or ``request.GET`` had a ``"foo"`` key. |
|---|
| 180 | | |
|---|
| 181 | | ``has_key()`` |
|---|
| 182 | | Returns ``True`` or ``False``, designating whether ``request.GET`` or |
|---|
| 183 | | ``request.POST`` has the given key. |
|---|
| 184 | | |
|---|