GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SeriousBug/actix-web-query-method-middleware: An Actix Web middleware that allows you to reroute `POST` requests to other methods like `PUT` or `DELETE` using a query parameter.

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
Readme.md
Readme.md
 
 

Repository files navigation

Crates.io docs.rs GitHub Workflow Status Codecov

An Actix Web middleware that allows you to reroute POST requests to other methods like PUT or DELETE using a query parameter.

This is useful in HTML forms where you can't use methods other than GET or POST. By adding this middleware to your server, you can submit the form to endpoints with methods other than POST by adding a query parameter like /your/url?_method=PUT.

For example:

<form method="post" action="/path/to/endpoint?_method=DELETE">
  <input type="submit" value="Delete this item" />
</form>

See the crate documentation for details.

Development

If you have any suggestions or find any bugs, feel free to open a bug report. If you'd like to contribute, you can send a pull request. If you are thinking of making a big change, you should open an issue first to discuss the changes to avoid wasted effort.

Testing

Run cargo test to test things. If you want to see the debug log output, you can also use RUST_LOG=debug cargo test to see debug logs for failed tests.

About

An Actix Web middleware that allows you to reroute `POST` requests to other methods like `PUT` or `DELETE` using a query parameter.

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.