Flask: request vs Request
Andrew Z
formisc at gmail.com
Sun Mar 11 10:02:56 EDT 2018
Sorry guys. i realized i was "mumbling" .
What is the difference between Request and request? - RTFM
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>, Andrew
Questions:
a. when do i use Request?
b. why can't I see any properties of the request? For example, in
Michael's tutorial, there is a call for request.json. PyCharm brings no
suggestions when i type in "request. "
On Sat, Mar 10, 2018 at 11:30 PM, Mark Lawrence <breamoreboy at gmail.com>
wrote:
> On 11/03/18 04:09, Christopher Mullins wrote:
>
>> In the code you linked, I don't see where the *R*equest is used. The
>> request variable is setup by flask when you annotate the function with the
>> resource endpoint and POST method. It contains the content of the request
>> which can be converted to json if that content type was specified.
>>
>>
> Could you please give some context when you reply, TIA.
>
> --
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
>
> Mark Lawrence
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list