(self, *args, **kwargs)
| 89 | return f"{self._app.settings['auth_cookie_name']()}={auth_cookie}" |
| 90 | |
| 91 | def fetch(self, *args, **kwargs) -> httpclient.HTTPResponse: |
| 92 | kwargs.setdefault("headers", {}).setdefault("Cookie", self.auth_cookie) |
| 93 | # tornado disallows POST without content by default. |
| 94 | return super().fetch(*args, **kwargs, allow_nonstandard_methods=True) |
| 95 | |
| 96 | def put_json(self, url, data: dict) -> httpclient.HTTPResponse: |
| 97 | return self.fetch( |
no test coverage detected