diff --git a/docs/book/src/server/25_server_functions.md b/docs/book/src/server/25_server_functions.md index 1381e8aca..862c61253 100644 --- a/docs/book/src/server/25_server_functions.md +++ b/docs/book/src/server/25_server_functions.md @@ -97,6 +97,14 @@ In other words, you have two choices: **But remember**: Leptos will handle all the details of this encoding and decoding for you. When you use a server function, it looks just like calling any other asynchronous function! +> **Why not `PUT` or `DELETE`? Why URL/form encoding, and not JSON?** +> +> These are reasonable questions. Much of the web is built on REST API patterns that encourage the use of semantic HTTP methods like `DELETE` to delete an item from a database, and many devs are accustomed to sending data to APIs in the JSON format. +> +> The reason we use `POST` or `GET` with URL-encoded data by default is the `