Awesome q2a theme
Ask us anything
Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Questions
Unanswered
Tags
Users
Ask a Question
Why is the answer type is passed to the method as a variable?
0
like
0
dislike
29
views
In most web frameworks use the following design:
def on_get(self, req, resp):
It is not clear why always resp is received in the function processor. This is the answer. We do not accept, and to return to.
python
asked
Apr 11, 2019
by
beduin01
|
29
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
0
like
0
dislike
So you can't copy-paste everywhere the constructor of the response is transmitted blank. And Yes, not "most" and asynchronous/non-blocking, because in the synchronous classes of responses are primitive and are only used after completion of the response.
answered
Apr 18, 2019
by
sim3x
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
This is a project that you must complete. In functional languages this could be the return value, but it is difficult to convey to another asynchronous function. Synthetic example:
asyncSetHeaders(resp)
From a less synthetic example is the need to make an asynchronous request, in order to form a response
answered
Apr 18, 2019
by
deliro
ask related question
comment
Please
log in
or
register
to add a comment.
Related questions
0
like
0
dislike
1
answer
What type of passed variable and how can I fix this line?
asked
Apr 26, 2019
by
espelioser
python
pyqt
0
like
0
dislike
1
answer
Hints the name of the variable passed in as method parameters in Java?
asked
Jun 6, 2019
by
BonBonSlick
phpstorm
0
like
0
dislike
1
answer
What code faster, where the variable is static or it is passed in a method?
asked
Jun 10, 2019
by
Conan_Doyle
java
0
like
0
dislike
2
answers
Create a method that checks correctness of the entered date; the date format is passed in the string variable, where d is the day, t — month, or a year?
asked
Jun 6, 2019
by
tera1004
.net
c#
0
like
0
dislike
2
answers
Variable is not passed to the html template. What to do?
asked
Apr 9, 2019
by
Bikmay
python
django
Most popular tags
javascript
php
css
html
jquery
wordpress
python
linux
web-development
mysql
android
windows
java
layout
c#
computer-networks
node.js
cpp
iron
yii
vue.js
1C-Bitrix
react
laravel
django
nginx
system-administration
search-engine-optimization
api
ubuntu
the-it-education.
ajax
sql
programming
hosting
cms
design
apache
google-chrome
bootstrap
Vkontakte
macos
google
network-administration
git
laptops
algorithms
regular-expressions
unity-game-engine
email
angular
database
network-equipment
software
wooсommerce
debian
.net
ios
information-security
video
law-in-it
browsers
books
parsing
wi-fi
game-development
career
htaccess
postgresql
telegram
mikrotik
mobile-development
ruby-on-rails
the-domain-name-system
modx
Yandex
c
json
opencart
Habr
freelance
vpn
asp.net
windows-server
symfony
bots
hard-drives
math
qt
DIY
audio
frontend
payment-system
bash
electronics
gulp.js
user-interface
docker
online-shopping
110,608
questions
257,187
answers
0
comments
40,796
users