Skip to content

Add Redirect response #188

Closed
Closed
@davidpdrsn

Description

Feature Request

Motivation

The oauth example contains a little Redirect utility. I think that is quite useful and so we should move it to axum proper.

Proposal

I think an API similar to tower-http's Redirect leaf service would be good. So something like

Redirect::temporary(uri)
Redirect::permanent(uri)
Redirect::with_status_code(uri, status)

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.E-easyCall for participation: Experience needed to fix: Easy / not muchE-help-wantedCall for participation: Help is requested to fix this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions