-
-
Notifications
You must be signed in to change notification settings - Fork 947
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
Rename resp.body to resp.text #1578
Comments
@kgriffs i'll try to do it. |
@MrPycharm great 👍 I added |
@vytas7 sure. |
@MrPycharm thought just checking if you were still working on this? |
Hi @vytas7, apologies for not updating here. I might not be able to complete it because I am caught up in some urgent things these days. |
No worries! I'm then leaving the |
Sure @vytas7 I'll pick it up again if I get a chance to :) |
rename Response.body with Response.text. Response.body is now deprecated alias for Response.text fix falconry#1578
rename Response.body with Response.text. Response.body is now deprecated alias for Response.text fix falconry#1578
* refactor(Response): deprecate Response.body rename Response.body with Response.text. Response.body is now deprecated alias for Response.text fix #1578 * docs(Response): change all reference to body with text * chore: rename also HTTPStatus body attribute to text * docs: improve documentation, add changelog * test: filter warnings * chore: make mypy happy * docs: update some further body reference to text Co-authored-by: Vytautas Liuolia <vytautas.liuolia@gmail.com> Co-authored-by: Federico Caselli <cfederico87@gmail.com> Co-authored-by: Kurt Griffiths <mail@kgriffs.com>
The str(url) function in SQLAlchemy hides the password. For a URL string that is to be re-used, use render_as_string(hide_password=False). this also replaces usege of falcon resp.body to resp.text [1] [1] falconry/falcon#1578 Change-Id: Ib8a393fd626f5515ef92632a5236120c3ccbde05
* Update freezer-api from branch 'master' to c826b3ab1f41c83c31e8e3b5c27a28d24f2dbd66 - do not use str(url) to stringify a URL for subsequent use The str(url) function in SQLAlchemy hides the password. For a URL string that is to be re-used, use render_as_string(hide_password=False). this also replaces usege of falcon resp.body to resp.text [1] [1] falconry/falcon#1578 Change-Id: Ib8a393fd626f5515ef92632a5236120c3ccbde05
For both the WSGI and ASGI interfaces, rename Response.body to Response.text to provide a better contrast to Response.data. Response.body should then be made a deprecated alias.
Don't forget to also grep the docstrings and /docs for references to 'body' and update them accordingly.
NOTE: It may be best to wait to implement this issue until #1573 is merged to avoid conflicts.
The text was updated successfully, but these errors were encountered: