Released my first crate! github.com/SeriousBug/actix-we

It's an Actix Web middleware that changes requests HTTP method by using a `?_method=PUT` query parameter.

Why? It's for HTML forms! HTML forms only support GET and POST requests, but I wanted to use PUT and DELETE and other methods as well. You either have to do something like this on the server side, or use JavaScript which I wanted to avoid. Hopefully it's useful for other folks too.

· · Web · 0 · 3 · 3
Sign in to participate in the conversation
Mastodon for Tech Folks

mastodon.technology is shutting down by the end of 2022. Please migrate your data immediately. This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!