You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with PATH_INFO, PATH_INFO_MATCHED, and PATH_INFO_TAIL defined in environ, Flask has an object called app, and you do
@app.route("/index.html")deffoo():
blahblah
and Flask has a different way of giving you what matches wildcards in the path. I'm not sure I like Flask's way of stuffing information in temporary globals, but I am uncomfortable with the way I'm doing things.
I do like the route belonging to an app object, and that you start the server for an app object.
So, do something elegant, and get closer to Flask's way if that's elegant. Is there an even-lighter-weight-pure-python knockoff of Flask?
How does Flask handle GET parameters and POST contents?
How does Flask manage cutting off the stack trace at the right point?
I don't like the uncertainty about what a handler is supposed to return (list? list-of-one-string? string? stream? static file?)
I will eventually want user code to output to what it sees as a stream, but which involves complicated AJAX piping with timeouts and keepalives, but then, at some point I will want graphics output in addition to the current stdout and stderr.
The text was updated successfully, but these errors were encountered:
Make the internal interfaces more like in Flask. In particular, where I have
with PATH_INFO, PATH_INFO_MATCHED, and PATH_INFO_TAIL defined in environ, Flask has an object called app, and you do
and Flask has a different way of giving you what matches wildcards in the path. I'm not sure I like Flask's way of stuffing information in temporary globals, but I am uncomfortable with the way I'm doing things.
I do like the route belonging to an app object, and that you start the server for an app object.
So, do something elegant, and get closer to Flask's way if that's elegant. Is there an even-lighter-weight-pure-python knockoff of Flask?
How does Flask handle GET parameters and POST contents?
How does Flask manage cutting off the stack trace at the right point?
I don't like the uncertainty about what a handler is supposed to return (list? list-of-one-string? string? stream? static file?)
I will eventually want user code to output to what it sees as a stream, but which involves complicated AJAX piping with timeouts and keepalives, but then, at some point I will want graphics output in addition to the current stdout and stderr.
The text was updated successfully, but these errors were encountered: