Skip to content

Implement ASGI application with fibonacci, factorial, and mean endpoints - #63

Open
K0l0b04ek wants to merge 3 commits into
L1mple:mainfrom
K0l0b04ek:main
Open

K0l0b04ek wants to merge 3 commits into
L1mple:mainfrom
K0l0b04ek:main

Conversation

@K0l0b04ek

Copy link
Copy Markdown

No description provided.

@DevDenus DevDenus left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошая реализация, молодец!

Comment thread hw1/app.py
from typing import Any, Awaitable, Callable


BAD_REQUEST = None, 400

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно это импортировать из http.HTTPStatus

Comment thread hw1/app.py
message = await receive()
body += message.get('body', b'')
if not message.get('more_body', False):
break

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно дополнительно обрабатывать disconnect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants