Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HH-220006 Add exec header to legacy frontik #716

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- name: 7.5.10
date: '2024-06-21T09:42:17.532559+03:00'
description: 'Добавлен заголовок времени выполнения запроса'
instructions: ''
compatible: true

- name: 7.5.8
date: '2024-04-11T09:42:17.532559+03:00'
description: ''
Expand Down
3 changes: 3 additions & 0 deletions frontik/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,9 @@ def finish(self, chunk: Optional[Union[str, bytes, dict]] = None) -> Future[None
for name, value in self._mandatory_headers.items():
self.set_header(name, value)

self.set_header(
'Server-Timing', f'frontik;desc="frontik execution time";dur={str(self.request.request_time())}')

for args, kwargs in self._mandatory_cookies.values():
try:
self.set_cookie(*args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion frontik/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '7.5.8'
version = '7.5.10'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'poetry.core.masonry.api'

[tool.poetry]
name = 'frontik'
version = '7.5.8'
version = '7.5.10'
description = 'Frontik is an asyncronous Tornado-based application server'
authors = ['architecture <[email protected]>']
repository = 'https://github.com/hhru/frontik'
Expand Down