Aiohttp: could you tell me how to make the web server "redirect" to other url.

Created on 17 Apr 2016  路  2Comments  路  Source: aio-libs/aiohttp

Long story short

Expected behaviour

Actual behaviour

Steps to reproduce

Your environment

outdated question server

Most helpful comment

The first example code shows server-side redirct -- http://aiohttp.readthedocs.org/en/stable/web.html#exceptions

async def handler(request):
    return aiohttp.web.HTTPFound('http://absolute.url/and/path/if/you/want')

All 2 comments

The first example code shows server-side redirct -- http://aiohttp.readthedocs.org/en/stable/web.html#exceptions

async def handler(request):
    return aiohttp.web.HTTPFound('http://absolute.url/and/path/if/you/want')

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a [new issue] for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that [new issue].

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asvetlov picture asvetlov  路  31Comments

alikzao picture alikzao  路  30Comments

thehesiod picture thehesiod  路  32Comments

txomon picture txomon  路  29Comments

fafhrd91 picture fafhrd91  路  38Comments