Changing values on a werkzeug request object
问题 I have a request object that comes from werkzeug. I want to change a value on this request object. This is not possible because werkzeug request objects are immutable. I understand this design decision, but I need to change a value. How do I do this? >>> request <Request 'http://localhost:5000/new' [POST]> >>> request.method 'POST' >>> request.method = 'GET' *** AttributeError: read only property I tried doing a deepcopy , but the resulting copy is immutable also. I guess I could just create