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

Codeberg-AsGithubAlternative-buhtz picture Codeberg-AsGithubAlternative-buhtz  路  3Comments

thehesiod picture thehesiod  路  4Comments

Smosker picture Smosker  路  3Comments

jonringer picture jonringer  路  4Comments

ahuigo picture ahuigo  路  5Comments