DioxusLabs / DioxusLabs/dioxus

Support for 201 created + location header

Open
#5,560 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Feature Request

We are trying to follow REST standards implementing dioxus with full stack.

One of our scenarios is like this:
- client request POST /catalogs
- server responds with 201 created and header LOCATION: /catalogs/123
- client redirect to /catalogs/123 showing the created catalog

Is there any kind of support in your framework for this scenario?

## Implement Suggestion

Idea would be similar to responding with a redirect header, so when the router detects a 201 status with empty body + location header it will simply redirect to that page.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.