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
There's quite a bit of duplicate code between the two. I'd like to reorganize everything such that I can do the following:
# not on gae
>>> import fluidinfo as fi
>>> r = fi.get('/about/...')
>>> r.status
200
>>> r.body
42
# on gae
>>> import fluidinfo.gae as fi
>>> r = fi.get('/about/...')
>>> r.status
200
>>> r.body
42
# gae asynchronous
>>> import fluidinfo.gae as fi
>>> rpc = fi.get('/about/...', async=True)
# later
>>> r = rpc.result()
>>> r.status
200
>>> r.body
42
Basically the only change was the import. Most of this will be straightforward, but we'll need a Response class to present a standard interface for users whether they are on gae or somewhere else.
The text was updated successfully, but these errors were encountered:
There's quite a bit of duplicate code between the two. I'd like to reorganize everything such that I can do the following:
Basically the only change was the import. Most of this will be straightforward, but we'll need a Response class to present a standard interface for users whether they are on gae or somewhere else.
The text was updated successfully, but these errors were encountered: